From: Piske, Harald <Harald.P<iske@bo...> - 2002-04-08 00:34:06
> sticky mainly refers to which sides the widgets should "stick" to when
> resized. so if i have a listview which is -sticky => 'ew'
> then when it gets
> resized it should stretch to fit across the screen (as in
> east and west,
> left and right) but the vertical size would stay relative to
> how much the
> window was resized. i hope thats a good enough explanation.
I know Tk and when I did my first 'real' Win32-GUI project, I made a fairly
sophisticated module to accomplish this. It's WinSize.pm on
http://www.fairymails.com/perl/. It also takes care of putting the last size
and position into the registry for re-use the next time the same program
starts up. I hate it when I have to squeeze and strain a window each time
I didn't get it to work with 665 yet, there's an issue with the main window
not reacting to dragging it's edges. I don't know if that's my fault, I have
no time right now to look at it.
Note, this is by far not an equivalent to the Tk pack manager. You still
have to design your initial window pixel by pixel - but there's a cool thing
out there Johan made:
From: Johan Lindstrom <johanl@ba...> - 2002-04-08 14:47:17
>Note, this is by far not an equivalent to the Tk pack manager. You still
>have to design your initial window pixel by pixel - but there's a cool thing
>out there Johan made:
The GUI Loft will help you manage the resizing stuff, yes. It does that by
using the module Win32::GUI::Resizer, which can be used in itself (although
the details are boring and error prone to get right manually).
Basically, it lets you define relationships, like "when the window gets
larger, the OK-button should move along", or "the text field should get wider".
If you'd like to try it out, I think the most recent version is in the TGL
or possibly here:
-------- ------ ---- --- -- -- -- - - - - -
Johan Lindström Sourcerer @ Boss Casinos johanl@...
Latest bookmark: "TextCat Language Guesser"
dmoz (1 of 2): ...erlands/Regionaal/Nederland/Groningen/Onderwijs