Skip to content
⌘ NSIS Forum Archive

InstallOptions Set Font no item/window refresh on Windows 2000 Problem

1 posts

rochi#

InstallOptions Set Font no item/window refresh on Windows 2000 Problem

Hi,

my Setup use several custom pages with InstallOptions.
I have two radio buttons on my page and the text of the active button appears bold.

On Windows XP/Vista systems the whole setup works fine.

On Windows 2000 systems exists a item/window refresh problem.
If I change a font on Windows 2000 systems the dialog shows both labels bold. But if I force a redraw/refresh of the window (like minimize or move outside the desktop) everything looks fine (only one bold).
It seems to be the item/window doesn't refresh itself.


Here the code which work on Windows XP/Vista but not on Windows 2000:

CreateFont $FONT "$(^Font)" "$(^FontSize)" 400
SendMessage $DLGITEM ${WM_SETFONT} $FONT 0
After some frustrating hours I found a solution which works on all systems.

CreateFont $FONT "$(^Font)" "$(^FontSize)" 400
SendMessage $DLGITEM ${WM_SETFONT} $FONT 1
See WM_SETFONT

If the lparam parameter is TRUE, the control redraws itself.

I use NSIS 2.30.