View Full Version : Dynamically hide a section...
JeronimoColon
21st September 2004, 03:05
I have searched the forum and I can't seem to find any reference to dynamically hiding (or unhiding) a section.
I take it that I cannot do this...correct?
:(
Thanx!
jc3
Afrow UK
21st September 2004, 16:47
This can be done dynamically like so...
Section "My Section" MySec
...
SectionEnd
!include Sections.nsh
Function Blah
;Enable section
!insertmacro SelectSection "${MySec}"
;Disable section
!insertmacro UnselectSection "${MySec}"
FunctionEnd
-Stu
Yathosho
21st September 2004, 16:55
there is an example (http://nsis.sourceforge.net/archive/viewpage.php?pageid=476) in the archive (http://nsis.sourceforge.net/archive/nsisweb.php).
JeronimoColon
23rd September 2004, 03:11
Thanks Stu,
I knew how to select and unselect a checkbox. :)
I was looking for the equivalent of:
Section "-My Section" MySec
...
SectionEnd
Dynamic invisible vs. visible. I really appreciate your help though. I've noticed that you’re always the first to lend a hand when some asks for help. I really appreciate that! :up:
Thanks Yathosho,
The link to the example you sent had exactly what I was looking for. :D The title mislead me at first, but it was perfect.
I've read through the help for NSIS and the Readme for MUI in there entirety, but it never dawned on me that setting the sections text to "" would make it hidden.
SectionSetText ${secName} ""
I'll read through both of the docs again this weekend. :o
Thanks again.
jc3
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.