Old 17th January 2010, 22:52   #1
pnielsen
Junior Member
 
Join Date: Jan 2010
Posts: 3
Adding more buttons to footer (beside Back/Next/Cancel)

Hello,

I'm migrating our installer from the now defunct Wise Installation system.

I need to achieve a dialog with additional buttons in the footer, and I can't figure out how to do this. (Getting the ListView with checkboxes was no problem with nsDialogs and some Win32 calls).

Any suggestions on how to get additional push buttons added to the footer in NSIS? nsDialogs does not appear to give me this option. Controls are clipped if I try to move them into the footer area.

This is what I'm trying to achieve:



Thanks,
Peter
pnielsen is offline   Reply With Quote
Old 18th January 2010, 01:08   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
One thing you could try is to re-parent some nsDialog buttons with $hwndparent as the new parent when calling SetParent (Totally unsupported, not even sure if it will work, but you could give it a shot)

The other ugly option is to use my subclass plugin; http://nsis.sourceforge.net/WndSubclass_plug-in

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th January 2010, 02:10   #3
CrushBug
Senior Member
 
Join Date: May 2005
Posts: 119
I think from a UI perspective that you should not put those 2 buttons down on the bottom. Back/Next/Cancel are unified controls for the whole installer.

Keeping the check listbox with the All/None buttons together fits better visually. You would need to shrink the listbox and put the buttons on the bottom or on the right side with slightly different text.
CrushBug is offline   Reply With Quote
Old 18th January 2010, 12:16   #4
pnielsen
Junior Member
 
Join Date: Jan 2010
Posts: 3
That is right. However, Back/Next/Cancel stay in the same place all the time. From an UI perspective you can consider the unused blank area to the right of the back button a "custom area", especially for one time use. Think of it like this: The two buttons are there all along but hidden in all other dialogs but this one

Because of existing documentation (including printed documentation) I would prefer not to change the design. However, if I have to change the design, the ideal approach is probably to change the list view to a tree view with a top node checkbox that easily lets you select or deselect all...

Thanks,
Peter
pnielsen is offline   Reply With Quote
Old 18th January 2010, 14:13   #5
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
add the button using Resource Hacker to the UI you want..not cool?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 18th January 2010, 14:17   #6
pnielsen
Junior Member
 
Join Date: Jan 2010
Posts: 3
Quote:
Originally posted by Joel
add the button using Resource Hacker to the UI you want..not cool?
Just what I needed to know. Works like a charm. Thank you. Problem solved!

Thanks,
Peter

Last edited by pnielsen; 18th January 2010 at 15:05.
pnielsen 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