Skip to content
⌘ NSIS Forum Archive

Section Descriptions

2 posts

shiva21#

Section Descriptions

I'm creating dynamic sections based on a ini file, in .onInit. I need to set the description of each section so that I could see the description while i hover over the component in components page.

In case of usual way we write

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SectionName} ${SectionDescr}
!insertmacro MUI_FUNCTION_DESCRIPTION_END

but how this can be done for a dynamic sections.

-Shiva S
Animaether#
In the case of dynamic sections, you might be best off handling the .onMouseOverSection callback yourself.

To use that, comment out your MUI_FUNCTION_DESCRIPTION bits, and add..
Function .onMouseOverSection
  /* $0 contains the Section ID */
FunctionEnd 
Your dynamic sections code should have some handling in it for you to know which section is which, of course.

See also:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.