Old 19th February 2017, 16:26   #1
alexmitev
Junior Member
 
Join Date: Feb 2017
Posts: 15
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:
PHP Code:
GetDlgItem $1 $hwndParent 1 
SendMessage $${BCM_SETSHIELD0 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 is offline   Reply With Quote
Old 20th February 2017, 10:12   #2
alexmitev
Junior Member
 
Join Date: Feb 2017
Posts: 15
OK, I think I found the solution:

PHP Code:
!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:

PHP Code:
!insertmacro UMUI_IOPAGECTLTRANSPARENT_INIT 
Could this be an issue with XP themes?
alexmitev is offline   Reply With Quote
Old 20th February 2017, 15:30   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,608
Not a real solution but you could add a shield icon next to the radiobutton instead.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th February 2017, 15:30   #4
alexmitev
Junior Member
 
Join Date: Feb 2017
Posts: 15
I see in general
PHP Code:
!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?
alexmitev is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump