Skip to content
⌘ NSIS Forum Archive

ToolTips plugin: How usefull?

30 posts

Joel#

ToolTips plugin: How usefull?

How usefull will be a plugin that will allow to display Tooltips in some controls of the Installer's dialog?
Joel#
See first version of it.
Compile the example.


Comments?
Joel#
Don't need to, in your show function of the custom page, use as the documentation of InstallOptions:
GetDlgItem (output var) (hwnd of the custom dialog) (1200 + Field number - 1)
I'll try to make an example
Joel#

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
Yathosho#
as i'm using MUI, i tried the following code.
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
the result of this is the installer quitting instantly after calling that page. can anyone help me out please?
deguix#
1) Remove !define MUI_CUSTOMPAGECOMMANDS.

2) Replace !insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini" by !insertmacro MUI_INSTALLOPTIONS_SHOW.
Joel#
Updated plugin 😁

New:
Customize the fore, background color as well the font and the size.

See the example for details.

😁
agentorange665#
In the archive: http://nsis.sourceforge.net/archive/...instances=0,32

But the link there just points here to lobos site:


Although the version has not changed.
Joel#
Ok... updated

See the readme + examples....
What's new?
1. Custom colors.
2. Custom font face and size.

Archive
ezar2003#
Thank You!!!
I have some problem 😉 If I add a tooltip to ComboBox or Button, when timeout expire tooltip don't appear anymore...
(Es decir, si en un ComboBox o un Botón asocio un Tooltip y lo hago aparecer, pasando el ratón por encima, cuando desaparece ya no vuelve a aparecer. Esto no pasa en un EntryField)
Joel#
Yes, I have the same problem... I don't know why, I use the user's timeout default appear-dissapear. I'll check msdn, maybe I'm missing something...

Thanks for the reply.... 🙂
onad#
Nice, I'll love plugins,

What about adding:

!addplugindir ".\"

to your NSIS script so we can try instantly?
Joel#
Originally posted by onad
Nice, I'll love plugins,

What about adding:

!addplugindir ".\"

to your NSIS script so we can try instantly?
Maybe 🙂
on next release 😉
Animaether#
This plugin is no longer maintained, so I thought I'd write up some issues encountered in later versions of Windows (and in general usage):