Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ToolTips plugin: How usefull? (http://forums.winamp.com/showthread.php?t=180050)

Joel 15th May 2004 13:31

ToolTips plugin: How usefull?
 
How usefull will be a plugin that will allow to display Tooltips in some controls of the Installer's dialog?

VegetaSan 15th May 2004 21:37

very usefull .. and very cool.... !!!!

Joel 16th May 2004 13:35

In progress :)

Joel 18th May 2004 22:35

1 Attachment(s)
See first version of it.
Compile the example.


Comments?

deguix 19th May 2004 02:03

Hmmm... Great, it worked very well with Win XP!

Keep up with the good work!

:up: :up:

Joel 19th May 2004 22:56

For the Modern tooltip will need IE 5 or Windows 98.

Any luck in Win9x and Win2k users?

pengyou 19th May 2004 23:08

Both types of tooltip appeared on my Win98SE system

Joel 20th May 2004 13:36

Thanks!

I'll do final fixes, than load-it up in the web archive
:)

Yathosho 6th June 2004 12:57

does this also work for IO pages?

Joel 6th June 2004 13:35

Yes, you'll just get the HWND of the control.

Yathosho 6th June 2004 13:57

is there a tool, which shows me the HWND of my controls (onmouseover)?

Joel 6th June 2004 16:35

Don't need to, in your show function of the custom page, use as the documentation of InstallOptions:
Quote:

GetDlgItem (output var) (hwnd of the custom dialog) (1200 + Field number - 1)
I'll try to make an example

Yathosho 20th June 2004 17:34

how do i get the hwnd of the custom page then? :)

Joel 20th June 2004 18:07

code:

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 20th June 2004 20:53

as i'm using MUI, i tried the following code.
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 21st June 2004 01:21

You should attach your script so we can help to fix it properly.

Yathosho 21st June 2004 02:06

1 Attachment(s)
hope this helps :rolleyes:

deguix 21st June 2004 10:57

1) Remove !define MUI_CUSTOMPAGECOMMANDS.

2) Replace !insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini" by !insertmacro MUI_INSTALLOPTIONS_SHOW.

Joel 21st June 2004 20:55

Updated plugin :D

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

See the example for details.

:D

ezar2003 29th December 2004 15:05

Perfect!! and... Thank You!!! Where Can I download it? (in web page it's 1.0 version)

agentorange665 29th December 2004 17:36

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

But the link there just points here to lobos site:
http://www.lobo-lunar.com/nsis/

Although the version has not changed.

Joel 29th December 2004 18:02

I see, that was a debug upload in that time...

I'll work in the debug for a release one ;)

Joel 29th December 2004 18:31

Ok... updated

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

Archive

ezar2003 30th December 2004 08:12

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 30th December 2004 13:53

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.... :)

Joel 23rd July 2006 03:36

Updated:

- Fix size bug.
- Added an example with custom page controls.

Mark Nascimento 23rd July 2006 06:32

Thanks, Joel.

onad 24th July 2006 17:46

Nice, I'll love plugins,

What about adding:

!addplugindir ".\"

to your NSIS script so we can try instantly?

Joel 25th July 2006 00:57

Quote:

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 3rd May 2010 00:26

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):
http://nsis.sourceforge.net/ToolTips...d_known_issues


All times are GMT. The time now is 21:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.