Re: Win32Libv50: How make window invisible (initially?)?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matthew Lewis wrote:

> Has anyone created a little library (it shouldn't
> be too hard, I think) to automatically size/position
> controls based on the display settings.

I'd written something like that for one of my DOS window managers, based on
the TCL/TK model. The logic for dividing up space between bounding boxes can
be more complex than you might think, but it is doable. It can be a bit
confusing to work with, but it's slick.

The basic hook to the system would be the onSize event - whenever a window
was resized, you would recursively go through each bounding box and
calculate the real estate that each widget gets. You would probably want to
wrap the create() event, so that instead of supplying the x/y/cx/cy values
of a control, you would give a different set of attributes.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu