diff -r 000000000000 -r d5ce4c64ef88 Docs/ExperienceUI/pages/secdesc.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Docs/ExperienceUI/pages/secdesc.htm Tue Oct 16 00:07:41 2007 -0400 @@ -0,0 +1,102 @@ + + + ExperienceUI Documentation Content Frame + + + + + + + + + + + + + + + + + + + +
+ +

Section Descriptions

+ + +

+ Just like the Modern UI, the ExperienceUI allows descriptions for the various sections in your installer. + Here is how to create the cool description-on-mouse-over effect:
+

+

    +
  1. Add index IDs to your sections.
    +
    + If you haven't done this already, add a unique code to the end of the line with the Section command. Example:
    +
    + Section "My Section" SecMySection
    + <your code...>
    + SectionEnd

    +
    + Sections must have a name or a "" as the first parameter in order for this to work.

  2. +
  3. Insert the Section Description header macro.
    +
    + Insert the macro XPUI_FUNCTION_DESCRIPTION_BEGIN into your script after all of your sections, although you can put the + uninstaller section(s) after this if you wish.

  4. +
  5. Insert your description text.
    +
    + XPUI_DESCRIPTION_TEXT Section_index_define "Section Description Text" - Inserts description + text into your installer. Use only between the XPUI_FUNCTION_DESCRIPTION_BEGIN and XPUI_FUNCTION_DESCRIPTION_END + macros.
    +
    + Insert the XPUI_DESCRIPTION_TEXT macro into your installer once for each section you want a description for, using the + syntax given above. Example:
    +
    + !insertmacro XPUI_FUNCTION_DESCRIPTION_BEGIN
    + !insertmacro XPUI_DESCRIPTION_TEXT ${SecMySection} "Description of the section 'My Section'"
    +  ... +

    +
  6. +
  7. Insert the closing macro.
    +
    + Insert the macro XPUI_FUNCTION_DESCRIPTION_END macro into your script after all of your description text. Please note that + if you have custom code for your .onMouseOverSection function, you will need to insert it before this macro. +
+ If you are using multiple languages in your installer, use language strings to write descriptions for each language, and + then use the $(LANG_STRING) as the section description text. Example:
+
+ + Section "Section One" Sec1
+  ...
+ SectionEnd
+
+ Section "Section Two" Sec2
+  ...
+ SectionEnd
+
+ LangString DESC_SEC1 1033 "One"
+ LangString DESC_SEC1 1032 "Uno"
+ LangString DESC_SEC2 1033 "Two"
+ LangString DESC_SEC2 1032 "Dos"
+
+ !insertmacro XPUI_FUNCTION_DESCRIPTION_BEGIN
+   !insertmacro XPUI_DESCRIPTION_TEXT ${Sec1} "$(DESC_SEC1)"
+   !insertmacro XPUI_DESCRIPTION_TEXT ${Sec2} "$(DESC_SEC2)"
+ !insertmacro XPUI_FUNCTION_DESCRIPTION_END + + +

+ The section description code for the ExperienceUI was based on the code from the Modern UI, written by Joost Verburg. + Two thumbs up to him for writing this awesome code. +

+
+ +
+ + + +
+ + + +