Re: Screen Resolutions

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

C. K. Lester wrote:

> How would one go about programming 'screen resolution
> adaptation' in one's Windows program?

In X Windows, it's called a 'geometry manager', and they dynamically lay out
the window's components. Tcl/Tk is an excellent example of this sort of
thing.

I dabbled with that in WinMan, and it's quite feasible to add to Win32Lib.
Take a look at WinMan, and you can get a flavor of what's involved.

There are typically a handful of styles to choose from: horizontal layout,
vertical layout, etc. You can place geometry managers within other geometry
managers and build complex layouts without ever having to specify an size or
positions. Control placement within a geometry manager is a relative sort of
thing, along the lines of "on the right hand side of the 'Close' button".

I became disenchanted with geometry managers when I worked with Tcl/Tk. The
windows didn't seem to know about the screen resolution, so when they were
created, they were much too large. In addition, many windows had so many
elements that they were only useful in high resolutions.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu