1. Re: Tab Stops in List Box (was: Re: printf fix )
On Fri, 28 Apr 2000 05:46:01 -0700, Dan B Moyer wrote:
> I did change the listbox widths from 170 to 270 in order to show the full
>width of your examples, dunno if that's just my system or what. Maybe it's
>because 'dialog template units' aren't pixels?
DTU's must be dependent on system settings (default system font & font
size). I stick with Windows default settings so it looks the same on both
my Win98 system at home as it does on my Win2K system at work (i.e. text
fits fine in a listbox of 170 pixels). I guess it's not a good idea for me
to assume Windows default settings when writing programs because I'm
basically not testing for Accessibility features (larger fonts used by
those with vision deficiencies, etc.)
>Looks to me like
>'MapDialogRect' just goes from 'dialog template units' to pixels, when what
>would be needed would be the opposite direction, to get correct numbers to
>set up tab positions relative to size of listbox in pixels?
Looks like MapDialogRect is there for you to create/resize your listbox
large enough to accomodate the user's default system font. This makes
sense if you want your code to be Accessibility complete. Otherwise, you
should specifically set the font/font size for the list box to ensure it
will look the same on all systems.
Let me know if you need help using MapDialogRect (if you plan on using it).
-- Brian