Skip to content
⌘ NSIS Forum Archive

Display shield on Next button in Ultra Modern UI

4 posts

alexmitev#

Display shield on Next button in Ultra Modern UI

Hello,
In MUI it is possible to display the Windows shield on the Next button with the following code:
GetDlgItem $1 $hwndParent 1 ; 
SendMessage $1 ${BCM_SETSHIELD} 0 1 
I see in Ultra Modern UI this does not work because of the themed buttons. Is it possible to display the Shield in Ultra Modern UI, maybe by removing the theme only from the Next button?
alexmitev#
OK, I think I found the solution:

!define UMUI_NO_BUTTONIMAGE
!define UMUI_XPSTYLE on 
It's not very pretty, because it adds 1px gray border around buttons:



I also see this renders radio buttons in my nsDialogs custom page with black font, although I'm using the suggested macro:

!insertmacro UMUI_IOPAGECTLTRANSPARENT_INIT 
Could this be an issue with XP themes?
alexmitev#
I see in general
!define UMUI_XPSTYLE on 
causes some issues with font color for radio buttons, group box and check box controls:







Could these issues be fixed in Ultra Modern UI?