TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JUD MCCRANIE
from: FRANCOIS PIETTE
date: 1997-08-02 09:47:00
subject: RE: SCREEN RESOLUTIONS

Salut Jud McCranie !
Dans un message de Jud McCranie dat‚ du 31 Jul 97  22:40:00 il ‚tait dit:
  JM> Some of these problems
  JM> could have been avoided if someone hadactually put some thought into
  JM> the design of Windows. That is,rather than specifying the height in
  JM> pixels, make it where theprogrammer can say "make the height 5% of the
  JM> screen height andthe width 10% of the screen width" - independent of
  JM> the screen resolution being used.
I do not agree with you. It is far better as windows is now. Greater 
resolution means that the user can view more, not view same thing 
bigger.
You have to design your program for the standard resolution (640x480) 
and handle the Resize event then resize everything on the window. You 
also should handle the WM_GETMINMAXINFO to limit the windows size into 
some dimensions under or above which you cannot resize/reposition 
everthing correctly.
You can even do all that processing automatically by designing a form 
(easy to use with form inheritance) which scan all the components and 
resize, reposition them correctly. You can for example use the tag 
property to store for 8 bits numbers reresenting the ratio between the 
size of the window and the size or the position of every control
(size, position, X, Y, giving four numbers) on creation, you build an 
array with original size and position and on form resize you 
resize controls and reposition them.
You can also descend every component you use to a new one having the 
required properties and behaviour to resize/reposition them self.
There are also commercial solution availables.
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.