I have an installer script and I'm looking at adding Tooltips to some icons I have inserted into a custom page.
The page is called as follows:
Page custom Custom_Component Function:Function Custom_Component
Call show_configuration
FunctionEnd
Function show_configuration
Pop $hwnd
FindWindow $3 "#32770" "" $HWNDPARENT
GetDlgItem $1 $3 1210 ;Field 9
MessageBox MB_OK "1 is $1 - 3 is $3"
ToolTips::Modern $1 ${TTM_ALERTICON} "Alert" "Testing Test" 0x00896845 0x00FCEFE4 "Times New Roman" 15
!insertmacro MUI_HEADER_TEXT "Configuration" ""
!insertmacro MUI_INSTALLOPTIONS_DISPLAY_RETURN "config_page.ini"
!insertmacro MUI_INSTALLOPTIONS_READ $4 "config_page.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_SHOW
Pop $R0
${If} $R0 == "success"
Call config_validation
${ElseIf} $R2 == 1
Call show_configuration
${ElseIf} $R0 == "back"
${else}
Quit
${EndIf}
FunctionEnd The page config is loaded oninit:Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\config_page.ini "config_page.ini"
FunctionEnd On the Popup $1 = nothing and $3 = a random string of numbersI presume I'm doing something wrong, can anyone point me in the right direction?
Thanks.