--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:

> I forgot one thing. I seem to always specify half the size that I
> wanted. If wanted 600x20 dialog window, had to specify 600/2, 20/2 as
> width and height. It was rather unintuitive.


I suspect might be the dialog units thing: Bruce's suggestion I use
them.  Added this to docs whenever term in mentioned: does it seem to
match what's happening for you?

I suppose I can have some option to either override, or a service to
get DUs from pixels.

11.10 Dialog Units: control and dialog postions and sizes 

required in: define,  define_control 

<X>, <Y>, <width> and <height> parameters aren't in pixels; they are
in dialog units, which are based on the size of the font used by the
system (and chosen by the user). If you have a large font selected,
the dialog will be large, if you use a smaller font, the dialog will
be that much smaller. This is important as it makes sure that all of
the controls are the proper size to display their text in the current
font.

These measurements are device independent, so an application can use a
single template to create the same dialog box for all types of display
devices.  This ensures that a dialog box will have the same
proportions and appearance on all screens despite differing
resolutions and aspect ratios between screens. 

One horizontal dialog unit is equal to one-fourth of the average
character width for the system font. 

One vertical dialog unit is equal to one-eighth of the average
character height for the system font.








Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to