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
Dynamically hide a section...
4 posts
This can be done dynamically like so...
Section "My Section" MySec
...
SectionEnd
-Stu!include Sections.nsh
Function Blah
;Enable section
!insertmacro SelectSection "${MySec}"
;Disable section
!insertmacro UnselectSection "${MySec}"
FunctionEnd
Thanks Stu,
I knew how to select and unselect a checkbox. 🙂
I was looking for the equivalent of:
Thanks Yathosho,
The link to the example you sent had exactly what I was looking for. 😁 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. 😳
Thanks again.
jc3
I knew how to select and unselect a checkbox. 🙂
I was looking for the equivalent of:
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! 👍Section "-My Section" MySec
...
SectionEnd
Thanks Yathosho,
The link to the example you sent had exactly what I was looking for. 😁 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. 😳
Thanks again.
jc3