Chieftec
20th February 2007 16:47 UTC
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
Joel
20th February 2007 19:34 UTC
It must, only when the control has a valid handle
Chieftec
20th February 2007 21:50 UTC
Ok, but it doesn't work (see Attachment)
Joel
22nd February 2007 00:49 UTC
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.
Chieftec
22nd February 2007 14:37 UTC
ehm... How can I check if the hwnd of the icon is valid?
Joel
22nd February 2007 14:38 UTC
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?
zeeh3
22nd February 2007 15:50 UTC
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.
Joel
23rd February 2007 03:51 UTC
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.
Joel
23rd February 2007 19:04 UTC
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.