Old 4th February 2006, 23:35   #1
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
XPstyle on not applying to check boxes

I have a small tool that I am using "XPstyle on" in without the MUI. The XPstyle is applying itself to the buttons, but not to the checkboxes on the components page.

I opened the tool in Resource Hacker, and NSIS included the default flat black/white checkboxes. Yet, in another tool with a custom page and XPstyle on specified, the check boxes are not included, and the XPstyle is applied fully.

Does anyone have any idea what might be causing NSIS to include the default check boxes and use them, even with XPstyle on?

Thanks
flyakite is offline   Reply With Quote
Old 5th February 2006, 10:41   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
The check boxes in the tree view on the Components page are not Windows check boxes. They are from a bitmap image at compile-time.

Modern UI uses:
CheckBitmap "${NSISDIR}\Contrib\Graphics\Checks\modern.bmp"

-Stu
Afrow UK is offline   Reply With Quote
Old 5th February 2006, 10:47   #3
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
That's normal. XPstyle don't have effect on the checks because NSIS uses it's own bitmap to draw them.

To change the check bitmap use CheckBitmap function
code:
CheckBitmap "${NSISDIR}\Contrib\Graphics\Checks\modern.bmp"

Edit: Great timing :/
{_trueparuex^} is offline   Reply With Quote
Old 6th February 2006, 02:46   #4
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
While I understand both reasons presented, why does the same action not occur on custom pages with InstallOptions? The images are not included at compile time, and it uses Windows to draw the correct images, so that it fits the style when XPstyle is on. Why can't the same behavior be applied to the default installer checkbox controls?
flyakite is offline   Reply With Quote
Old 6th February 2006, 17:32   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
The tree view control implemented on the InstFiles page is not a list of check box controls (if that is what you are thinking unless you mean something else) and therefore does not inherit the Windows bitmaps of the selected Windows theme.

All other check box controls do inherit the Windows bitmaps (or should do).

Perhaps you could produce a screenshot if you mean otherwise.

-Stu
Afrow UK is offline   Reply With Quote
Old 6th February 2006, 21:38   #6
l_d_allan
Member
 
l_d_allan's Avatar
 
Join Date: Jun 2005
Location: Colorado Springs, CO
Posts: 94
Just curious ... is there a simple way to use a circular bitmap to represent a RadioButton on the Components page? .... the square CheckBox that shows up implies (to me at least) multiple choices are acceptable, rather than mutually exclusive.

(see the one-section.nsi example ... which results in two groups of 3 radio buttons, except they are square check-boxes rather than circular.)
l_d_allan is offline   Reply With Quote
Old 7th February 2006, 07:06   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You'd have to create your own bitmap like the one in the ${NSISDIR}\Contrib\Graphics\Checks folder.

-Stu
Afrow UK is offline   Reply With Quote
Old 7th February 2006, 10:40   #8
Kemenaran
Junior Member
 
Join Date: Mar 2004
Posts: 6
Flyakite, if it is what you're interrested in, I have a bitmap that produce OSX-like checkboxes for NSIS
Attached Images
File Type: bmp aquachecks.bmp (2.6 KB, 607 views)
Kemenaran 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