Archive: Tooltipp on icon?


Tooltipp on icon?
  Hi folks,

I want to ask, if it is possible to display a tool tip using the Tooltip Plugin while hovering a icon?
In my Code Field 13 is the Icon.

GetDlgItem $1 $0 1212 # the button has the field #13, so 1200+2-1
ToolTips::Classic $1 "Some text." 0xA16E5B 0x00FFFFFF "Candara" 10

Is this possible?
Thanks in advance


It must, only when the control has a valid handle


Ok, but it doesn't work (see Attachment)


Ok, give sometime because I'm in the middle of my new project.
At the momento, try, as I posted, if the hwnd of the icon control is valid.


ehm... How can I check if the hwnd of the icon is valid?


Originally posted by Chieftec
ehm... How can I check if the hwnd of the icon is valid?
How? Err...How about see what's returning in your handle of the icon control?

Using:

ReadINIStr $3 "$PLUGINSDIR\page.ini" "Field 3" "HWND"
ToolTips::Classic $3 "Don not press teh button :P" 0x00896845 0x00FCEFE4 "Times New Roman" 15

No tooltip baloon with icon field. Mouse over "OK" button only shows tooltip baloon if not pressed.


Hi.. I tested..and yeah, seems that the tooltips doesn't work with icons...

I'll try to test with Win32 apps to see if the SS_ICON doesn't like tooltips.


Ok, after testing in Win32 apps seems that the static control for icons (SS_ICON) *can* have tooltips *if* the static control was created with the style SS_NOTIFY.

Becase the static controls, don't have mouse notifications, IMO.

Right now, my solution will be, before using any tooltip functions, add SS_NOTIFY... in Win32 code will be something like this:

DWORD dwStyle= GetWindowLong(hStatic, GWL_STYLE);

>SetWindowLong(hStatic, GWL_STYLE, dwStyle | SS_NOTIFY);
You'll have to use some system plugin code there...right now I can't code for you, but I hope that you get the idea.