swarm-support
[Top][All Lists]
Advanced

[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           |                         |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




reply via email to

[Prev in Thread] Current Thread [Next in Thread]