Display text file in MUI custom page
I need to display a list of countries, then base on user's selection, I need to display the EULA.
I use a list box to display countries, and store selection to a $Country variable.
1. I am creating a custom page using a listbox to display the EULA, but having trouble to import a .rtf file into a listbox. I have been reading forum and trying with no success, any help is appreciated.
2. I also need to display a checkbox on this custom page and won't allow user to move on unless this checkbox is checked, any pointer?
Thanks!
===============
; select country
Page custom CountrySelectionCreate CountrySelectionLeave
Function CountrySelectionCreate
nsDialogs::Create 1018
Pop $Dialog
${NSD_CreateListBox} 40 40 80% 70u ""
Pop $ListBox
SendMessage $ListBox ${LB_ADDSTRING} 0 "STR:Denmark"
SendMessage $ListBox ${LB_ADDSTRING} 0 "STR:Germany"
...
SendMessage $ListBox ${LB_ADDSTRING} 0 "STR:Singapore (Simplified Chinese)"
Pop $ListBox
nsDialogs::Show
FunctionEnd
Function CountrySelectionLeave
${NSD_LB_GetSelection} $ListBox $0
StrCpy $Country $0
FunctionEnd
==========
Page custom LicenseCreate LicenseLeave
Function LicenseCreate
; Create the custom page
nsDialogs::Create 1018
Pop $Dialog
!insertmacro MUI_HEADER_TEXT "EULA" "temp"
${NSD_CreateListBox} 40 40 80% 70u ""
HOW TO DISPLAY a .rtf file here?
Pop $ListBox2
nsDialogs::Show
FunctionEnd
Function LicenseLeave
FunctionEnd