TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Steffen Offermann
date: 1997-03-19 22:02:00
subject: Dynamically calculating dialog coordinates

Who knows how to create a dialog with position and size dependant on
the current display resolution? When the dialog is created from a
resource script, its dimensions are automatically adjusted, but what 
can I do, if - for certain reasons - the dialog cannot be defined 
within a resource? If I choose fixed values for one resolution (e.g.
800x600), the dialog will look absolutely disordered with a resolution
of 1024x768.

What I need is a means to determine the necessary scaling factor
that the fixed values must be multiplied with (i.e. the relation
of display units to dialog units). 

Tschuess,
  Steffen 
--- FastEcho 1.40+
* Origin: Warum guckst'n Du so ?! (2:2452/182.14)
SEEN-BY: 50/99 54/99 270/101 620/243 625/155 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 2452/182 180 250 24/888 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

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™.