This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Setup.exe: Font issue

> Hi,
> I always used to have problems with the package selection page in
> setup.exe (on W2K, using a custom screen resolution of 144 dpi).  The
> package list never showed the vertical scrollbar.  In the current
> version the mouse wheel didn't work either (another patch coming), so
> I couldn't scroll the list at all.

A lot of people have been having this problem, it'd be great if we could fix

> I tracked this down now to a font issue.  Turns out that the main
> window of the PropertySheet wizard uses the font alias "MS Shell Dlg"
> as its base font (as seen in the DLGTEMPLATE passed to
> PSCB_PRECREATE).  The individual pages use the font alias "MS Sans
> Serif" as set in the resource file.  With larger screen resolutions,
> this results in widely different ideas about the size of the dialog
> units that are used to measure dialogs and controls.  The result is
> that the vertical scrollbar of the list was outside of the clipping
> region that the main window had set up.

I don't quite follow.  MS Sans Serif claims to be TT, is Shell Dlg bitmap or
something?  And how would that be affected by dpi anyway?  Are dialog units
actually determined from the dialog's title font?  (That would not surprise me
in the least BTW ;-))

> The simplest fix was to change the font in the resource file (patch
> attached).  This is certainly better than the current situation, but I
> am not sure this is the best solution, as I am not sure that it is
> documented and garanteed that the wizard will use this specific font
> alias.

I'm also doing some runtime font changing stuff too (the bolded headers within
the pages), so that could come into play here as well.

> Ideally we want either set the font for the main window to "MS Sans
> Serif" at an apropriate time (i.e. before dialog units are converted
> to pixel units), or in some other way synchronize the font for the
> individual sheets with the main window at runtime.  I have not found a
> simple way to do this yet, though.
> If there is interest I can at least provide the code that I used to
> check the font that the main window is using and to write that to the
> log file.

I'm definitely interested in figuring out what's going on here and fixing it
once and for all.

Gary R. Van Sickle
Brewer.  Patriot.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]