ToolTips plugin: How usefull?
How usefull will be a plugin that will allow to display Tooltips in some controls of the Installer's dialog?
30 posts
GetDlgItem (output var) (hwnd of the custom dialog) (1200 + Field number - 1)I'll try to make an example
Function FunctionName ;FunctionName defined with Page command
;Display the Install Options dialog
Push $R0
Push $R1
Push $R2
InstallOptions::initDialog /NOUNLOAD $PLUGINSDIR\test.ini
Pop $R0 # HWND
GetDlgItem $R1 $R0 1200 ;1200 + Field number - 1
;$R1 contains the HWND of the first field
CreateFont $R2 "Tahoma" 10 700
SendMessage $R1 ${WM_SETFONT} $R2 0
InstallOptions::show
Pop $R0
Pop $R2
Pop $R1
Pop $R0
FunctionEnd
the result of this is the installer quitting instantly after calling that page. can anyone help me out please?Var HWND
Var DLGITEM
Function .onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioA.ini"
FunctionEnd
Function SetCustomA
!insertmacro MUI_HEADER_TEXT "Caption" "Description"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioA.ini"
Pop $HWND
GetDlgItem $DLGITEM $HWND 1201 ;Field 2
ToolTips::Classic $DLGITEM "Test"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini"
FunctionEnd
Originally posted by onadMaybe 🙂
Nice, I'll love plugins,
What about adding:
!addplugindir ".\"
to your NSIS script so we can try instantly?