 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Do you think AutoHotkey should have that features/function internally? |
| Yes |
|
33% |
[ 4 ] |
| Yes, even more ToolTip features please |
|
33% |
[ 4 ] |
| No, I don't need them |
|
0% |
[ 0 ] |
| No, to complex to use |
|
25% |
[ 3 ] |
| No |
|
8% |
[ 1 ] |
|
| Total Votes : 12 |
|
| Author |
Message |
Drugwash
Joined: 07 Sep 2008 Posts: 921 Location: Ploiesti, RO
|
Posted: Fri May 15, 2009 1:47 pm Post subject: |
|
|
Still flickers after update.
| Quote: | | You can close it but not click it yet | Actually I can click it (since it stays visible forever) but will not close; if it's meant to have a close button, then that's the problem, since I can't have that on my system. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Fri May 15, 2009 10:52 pm Post subject: |
|
|
| jballi wrote: | Re: Tooltip disappearing and never returning.
Here is an example script that should demonstrate the problem. I've included the Tooltip function from today's post.
When you run the script, notice that tooltips are assigned to all GUI objects. If you click on any (read: most) of the non-button objects, the Tooltip for that object disappears and never returns again. I hope this helps to demonstrate the problem. Thanks for your help.
|
I think I've got it now, at least it looks to work
I have rewritten the function, please test
EDIT:
Small bugfix.
17.05.2009 - Destroy and create again should work now, ToolTip() and ToolTip(1)
21.05.09 - New version: ToolTip() _________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun 
Last edited by HotKeyIt on Thu May 21, 2009 12:33 pm; edited 4 times in total |
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 748 Location: Texas, USA
|
Posted: Sat May 16, 2009 12:56 am Post subject: |
|
|
| HotKeyIt wrote: | I think I've got it now, at least it looks to work
I have rewritten the function, please test
|
I did a quick test and the problem appears to be fixed. I'll do more thorough testing when I get time but I think you got it. Good work!  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
Drugwash
Joined: 07 Sep 2008 Posts: 921 Location: Ploiesti, RO
|
Posted: Thu May 21, 2009 11:29 am Post subject: |
|
|
Unfortunately I'm out of this race - links won't show up as clickable so I'm stuck with a static tooltip at the bottom-right of my primary monitor with no way of launching anything or making it go away. And it's green - ugh, do I hate green!
Ah well, color tastes apart, I'm sorry for not being able to provide feedback anymore. Good luck with the project! |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Thu May 21, 2009 12:29 pm Post subject: |
|
|
| Drugwash wrote: | Unfortunately I'm out of this race - links won't show up as clickable so I'm stuck with a static tooltip at the bottom-right of my primary monitor with no way of launching anything or making it go away. And it's green - ugh, do I hate green!
Ah well, color tastes apart, I'm sorry for not being able to provide feedback anymore. Good luck with the project! |
I'm sad you can't use them, I like the linking feature, never thought It will be possible.
Can you tell me if flickering got better?
| Code: | ToolTip(100,"`nJust an example ToolTip following mouse movements"
,"This ToolTip will be destroyed in " . 4 . " Seconds","o1 I" . GetAssociatedIcon(A_AhkPath) . " B0000FF FFFFFFF")
Start:=A_TickCount
end=
While, end < 10
{
ToolTip(100,"In this example text and Title are updated continuously.`nTickCount:" . A_TickCount,"This ToolTip will be destroyed in " . 11 - Round(end:=(A_TickCount-Start)/1000) . " Seconds","I" . GetAssociatedIcon(A_AhkPath))
}
ToolTip(100)
end=
ToolTip(100,"In this example only position is tracked.","This ToolTip will be destroyed in 10 Seconds","D10 I" . GetAssociatedIcon(A_AhkPath) . " B0000FF FFFFFFF")
ToolTip(100)
end=
ToolTip(100,"`nHere only title is being changed"
,"This ToolTip will be destroyed in 10 Seconds","I" . GetAssociatedIcon(A_AhkPath) . " B0000FF FFFFFFF")
Start:=A_TickCount
While, end < 10
{
ToolTip(100,"","This ToolTip will be destroyed in " . 11 - Round(end:=(A_TickCount-Start)/1000) . " Seconds","I" . GetAssociatedIcon(A_AhkPath))
}
ToolTip(100)
ExitApp |
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
Drugwash
Joined: 07 Sep 2008 Posts: 921 Location: Ploiesti, RO
|
Posted: Thu May 21, 2009 1:59 pm Post subject: |
|
|
#1 (title and text updating) flickers badly.
#2 (position tracking) is static, displays perfectly.
#3 (title updating) shows faint signs of flicker when updating title, but it's merely noticeable and may get away unnoticed.
I suspect the balloon feature itself is possible on my system due to system files updates. AFAIK, the balloon has first been introduced in WindowsME and it most likely had limited possibilities at the time. With newer versions of Windows, the features have been extended (such as links support, probably, and the close button).
My updates most likely inherit only the ME features so the possibilities are limited. Thanks anyway, you've done a great job and there's a much larger Win2000+ user base to test/use your script.  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 748 Location: Texas, USA
|
Posted: Fri May 22, 2009 7:39 pm Post subject: |
|
|
I just downloaded today's version. It appears the "Tooltip disappearing and never returning" problem is back.
Thanks for your help. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
Guest
|
Posted: Sat May 23, 2009 10:46 pm Post subject: |
|
|
Update:
Fixed not to destroy ToolTips on ToolTipClose, otherwise control associated ToolTips were destroyed as well. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Sun May 24, 2009 4:27 pm Post subject: |
|
|
New options G and R:
Find an exaple here: InfoToolTip
| Option G wrote: | Execute one or more internal Labels of ToolTip function only.
For example:
- Track the position only, use ToolTip(1,"","","Xcaret Ycaret gTTM_TRACKPOSITION")
- - When X+Y are empty (= display near mouse position) you can use TTM_UPDATE
- Update text only, use ToolTip(1,"text","","G1"). Note specify L1 if links are used.
- Update title only, use ToolTip(1,"","Title","G1")
- Update background color + text color, specify . between gLabels to execute several:
- - ToolTip(1,"","","BBlue FWhite gTTM_SETTIPBKCOLOR.TTM_SETTIPTEXTCOLOR")
- Following labels can be used: TTM_SETTITLEA, TTM_SETTITLEW, TTM_POPUP, TTM_POP
TTM_SETTIPBKCOLOR, TTM_SETTIPTEXTCOLOR, TTM_TRACKPOSITION
|
| Option R wrote: |
Restrict width. This will restrict the width of the ToolTip.
So if Text is to long it will be shown in several lines
|
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Tue Jun 02, 2009 6:51 pm Post subject: |
|
|
New options, enjoy ToolTip.
Try AutoHotFile and see its capabilities
| Option E (Edges for ToolTip) wrote: | Use this to set margin of ToolTip window (space between text and border)
- Supply Etop.left.bottom.right in pixels, for example: E10.0.10.5 |
| Option G (GoSub ToolTip function) wrote: | New function can be executed now:
TTM_SETTITLEA + TTM_SETTITLEW (title+I)
TTM_POPUP - Show ToolTip at mouse coordinates
TTM_POP - Hide ToolTip
TTM_SETTIPBKCOLOR (B)
TTM_SETTIPTEXTCOLOR (F)
TTM_TRACKPOSITION (N+X+Y)
TTM_SETMAXTIPWIDTH (R)
TTM_SETMARGIN (E)
TT_SETTOOLINFO (text+A+P+N+X+Y+S+L)
Text will be updated if ToolTip() text parameter is not empty
|
| Option N wrote: | Do NOT activate ToolTip (N1)
To activate (show) near mouse call ToolTip(1,"","","gTTM_TRACKACTIVATE")
To activate and track position use ToolTip(1,"","","gTTM_TRACKACTIVATE.TTM_TRACKPOSITION") |
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Sat Jun 06, 2009 11:08 pm Post subject: |
|
|
| New option Q (Quench Style/Theme) wrote: | Use this option to disable ToolTip theme.
This way you can have for example usual coloured ToolTips in Vista. |
Try this on Vista: | Code: |
;-- Build GUI
gui -MinimizeBox
Gui +LastFound
GuiHwnd:=WinExist()
gui Add,Button,w150 hwndButton1_hWnd gButton1,Test Button 1
Tip:="Button 1: Press me to change my tooltip"
ToolTip(1,Tip,"","K1 B00FF00 A" . Button1_hWnd . " P" . GuiHwnd)
gui Add,Button,y+0 w150 hwndButton2_hWnd gButton2,Test Button 2
Tip:="Button 2: Press me to turn off the tooltip for this button"
ToolTip(2,Tip,"","K1 B00FF00 A" . Button2_hWnd . " P" . GuiHwnd)
gui Add,Button,y+0 w150 hwndButton3_hWnd gButton3,Test Button 3
Tip=
(ltrim
A Multiline Test Tooltip
2nd line
3rd line
4th line.
Press me to turn off all tooltips
)
ToolTip(3,Tip,"","K1 B00FFFF A" . Button3_hWnd . " P" . GuiHwnd)
gui Add,Checkbox,w150 hwndCheckbox_hWnd,Checkbox Control
Tip:="Tooltip for the Checkbox control"
ToolTip(4,Tip,"","K1 B00FF00 A" . Checkbox_hWnd . " P" . GuiHwnd)
gui Add,Radio,w150 hwndRadio_hWnd,Radio Control
Tip:="Tooltip for the Radio control"
ToolTip(5,Tip,"","K1 B00FF00 A" . Radio_hWnd . " P" . GuiHwnd)
gui Add,Edit,w150 hwndEdit_hWnd,Edit Control
Tip:="Tooltip for the Edit control"
ToolTip(6,Tip,"","K1 B00FF00 A" . Edit_hWnd . " P" . GuiHwnd)
gui Add,Text,w150 hwndText_hWnd gNull,Text Control
Tip=
(ltrim join`s
Tooltip for the Text control.`nNote that the Tooltip for a Text control does
not show unless a g-label for the control is defined.
)
ToolTip(7,Tip,"","K1 B00FF00 A" . Text_hWnd . " P" . GuiHwnd)
gui Add,Picture,w150 h100 hwndPicture_hWnd gNull,Picture.bmp
Tip=
(ltrim join`s
Tooltip for the Picture control.`nNote that the Tooltip for a Picture
control does not show unless a g-label for the control is defined.
)
ToolTip(9,Tip,"","K1 B00FF00 A" . Picture_hWnd . " P" . GuiHwnd)
gui Add,DropDownList,w150 r3 hwndDropDownList_hWnd,DropDownList Control||2|3
Tip:="Tooltip for the DropDownList control"
ToolTip(10,Tip,"","K1 B00FF00 A" . DropDownList_hWnd . " P" . GuiHwnd)
gui Add,ComboBox,w150 r3 hwndComboBox_hWnd,ComboBox Control||2|3
;-- A ComboBox is actually two controls: An Edit control and a Drop-down
; button. Note that handle returned for this control is for the
; drop-down button, not for the Edit control.
Tip=
(ltrim join`s
Tooltip for the drop-down button piece of the ComboBox control.`nNote that
this tip is different than the Edit piece of the control.
)
ToolTip(11,Tip,"","K1 B00FF00 A" . ComboBox_hWnd . " P" . GuiHwnd)
gui Add,ListBox,w150 r3 hwndListBox_hWnd,ListBox Control||2|3
Tip:="Tooltip for the ListBox control"
ToolTip(12,Tip,"","K1 B00FF00 A" . ListBox_hWnd . " P" . GuiHwnd)
gui Add,ListView,w150 h50 hwndListView_hWnd,ListView Control
Tip=
(ltrim join`s
Tooltip for the ListView control.`nNote that this tip is different than
the header piece of the control.
)
ToolTip(13,Tip,"","K1 B00FF00 A" . ListView_hWnd . " P" . GuiHwnd)
gui Add,DateTime,w150 hwndDateTime_hWnd ;,DateTime Control
Tip:="Tooltip for the DateTime control"
ToolTip(14,Tip,"","K1 B00FF00 A" . DateTime_hWnd . " P" . GuiHwnd)
;-- Uncomment this if you want to see the MonthCal control. Works the same as DateTime
;;;;;gui Add,MonthCal,w150 hwndMonthCal_hWnd ;,MonthCal Control
;;;;;Tip:="Tooltip for the MonthCal control"
;;;;;ToolTip(15,Tip,"","A" . MonthCal_hWnd . " P" . GuiHwnd)
gui Add,Progress,w150 hwndProgress_hWnd,65 ;Progress Control
Tip:="Tooltip for the Progress control"
ToolTip(16,Tip,"","K1 B00FF00 A" . Progress_hWnd . " P" . GuiHwnd)
gui Add,Slider,w150 hwndSlider_hWnd,45 ;Slider Control
Tip:="Tooltip for the Slider control"
ToolTip(17,Tip,"","K1 B00FF00 A" . Slider_hWnd . " P" . GuiHwnd)
gui Add,Hotkey,w150 hwndHotkey_hWnd,45 ;Hotkey Control
Tip:="Tooltip for the Hotkey control"
ToolTip(18,Tip,"","K1 B00FF00 A" . Hotkey_hWnd . " P" . GuiHwnd)
gui Add,Edit,w150 h20 hwndEdit2_hWnd,Dummy Edit Control ;-- Used by UpDown control
Tip=
(ltrim join`s
This Edit control was created so that the attached UpDown control could be
demonstrated.
)
ToolTip(19,Tip,"","K1 B00FF00 A" . Edit2_hWnd . " P" . GuiHwnd)
gui Add,UpDown,hwndUpDown_hWnd Range 1-100,5
Tip:="Tooltip for the UpDown control"
ToolTip(20,Tip,"","K1 B00FF00 A" . UpDown_hWnd . " P" . GuiHwnd)
gui Show,,Tooltip Test
;-- Note: The following information cannot be collected until after the window
; has been rendered
;-- Get hWnd to the Edit control piece of the ComboBox
ControlGet EditComboBox_hWnd,hWnd,,Edit2,Tooltip Test
Tip=
(ltrim join`s
Tooltip for the Edit piece of the ComboBox control.`nNote that this tip is
different than the drop-down button piece of this control.
)
ToolTip(11,Tip,"","A" . EditComboBox_hWnd . " P" . GuiHwnd)
;-- Get hWnd to the Edit control piece of the ComboBox
ControlGet ListViewHeader_hWnd,hWnd,,SysHeader321,Tooltip Test
Tip=
(ltrim join`s
Tooltip for the header of the ListView control.`nNote that this tip is
different than the rest of the ListView control.
)
ToolTip(13,Tip,"","K1 B00FF00 A" . ListViewHeader_hWnd . " P" . GuiHwnd)
return
Button1:
ToolTip(1,"Button 1: New Text","","K1 B00FF00 AButton1 P" . GuiHwnd)
return
Button2:
ToolTip(2)
return
Button3:
ToolTip()
MsgBox 64,ToolTips Cleared,All Tooltips destroyed. %A_Space%
return
Null:
return
GUIClose:
GUIescape:
Gui,Destroy
ExitApp
Return
|
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|