[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with Raster
From: |
mcmullin |
Subject: |
Re: problem with Raster |
Date: |
Fri, 7 Mar 1997 11:11:14 -0700 (MST) |
On 6 Mar, Sven Thommesen wrote:
> This ol' bug report might be relevant ...
[...]
>>c) solution: in method "-setWidth: (int) newWidth Height: (int) newHeight"
> there appears this piece of code:
>>
>>[globalTkInterp eval: "wm grid %s %d %d %d %d; wm aspect %s 1 1 1 1",
>> [parent getWidgetName],zoomFactor,zoomFactor,
>> logicalWidth, logicalHeight, [parent getWidgetName]];
>>
>>The order of the parameters has been transposed here (consult the Tk man
> page on "wm"); the correct code should be:
>>
>>[globalTkInterp eval: "wm grid %s %d %d %d %d; wm aspect %s 1 1 1 1",
>> [parent getWidgetName], logicalWidth, logicalHeight,
>> zoomFactor, zoomFactor, [parent getWidgetName]];
>>
Just to confirm that I tried this, substituting it for
my hack in Raster.m (where I overrode getHeight: and
getWidth:) and it seems to work in my app (at least).
Sounds like Sven had properly nailed this one all along
- that'll teach me to check the archives before
automatically reaching for my "irredeemible hacker" cap
(;-)
Thanks Sven!
And I guess this ought to make it into the next release
too (should I include an official gepr [grin] here?)
- Barry.
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Barry McMullin, ALife Group, | address@hidden |
| Santa Fe Institute, 1399 Hyde Park Road, | Voice: +1-505-984-8800 |
| Santa Fe, NM 87501, USA. | FAX: +1-505-982-0565 |
| http://www.eeng.dcu.ie/~mcmullin | |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- problem with raster, Kevin Crowston, 1997/03/06
- Re: problem with raster, Kevin Crowston, 1997/03/06
- Re: problem with Raster, Sven Thommesen, 1997/03/06
- Re: problem with Raster,
mcmullin <=
- Re: problem with Raster, mcmullin, 1997/03/10
- Re: problem with Raster, Jae Chan Oh, 1997/03/10
- Building objects on the fly, glen e. p. ropella, 1997/03/10
- Re: Building objects on the fly, Jae Chan Oh, 1997/03/10
- Re: Building objects on the fly, glen e. p. ropella, 1997/03/11
- Re: Building objects on the fly, Jae Chan Oh, 1997/03/11
- Re: Building objects on the fly, glen e. p. ropella, 1997/03/11
- "zone" or "getZone"? and one additiona question., Jae Chan Oh, 1997/03/13
- Classifier systems, Tony Bigbee, 1997/03/13