AutoHotkey Community

It is currently May 26th, 2012, 7:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Do you think AutoHotkey should have that features/function internally?
Poll ended at August 26th, 2009, 5:23 pm
Yes 33%  33%  [ 4 ]
Yes, even more ToolTip features please 33%  33%  [ 4 ]
No, I don't need them 0%  0%  [ 0 ]
No, to complex to use 25%  25%  [ 3 ]
No 8%  8%  [ 1 ]
Total votes : 12
Author Message
 Post subject:
PostPosted: May 15th, 2009, 2:47 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 11:52 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 :wink:


Last edited by HotKeyIt on May 21st, 2009, 1:33 pm, edited 4 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2009, 1:56 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
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! :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2009, 1:24 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
A new Version ist online, Enjoy :)

There are some new functions.
- Links are supported now, yes even clicking :D
- When closing a ToolTip, you can jump to a subroutine
- You can change the time before a ToolTip on a control will be shown.
- ToolTip is tracked at right mouse position now.
- You can also use GUI number now for P option. e.g. P99

Please give me feedback and post any bugs or questions.

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2009, 12:29 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2009, 1:29 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2009, 2:59 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
#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. :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2009, 5:33 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Many thanks for your kind words :)

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2009, 8:39 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
I just downloaded today's version. It appears the "Tooltip disappearing and never returning" problem is back.

Thanks for your help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2009, 9:59 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
jballi wrote:
I just downloaded today's version. It appears the "Tooltip disappearing and never returning" problem is back.

Thanks for your help.


I have eleminated some further errors, please try again.

Thank you for testing ;)

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2009, 11:46 pm 
Update:
Fixed not to destroy ToolTips on ToolTipClose, otherwise control associated ToolTips were destroyed as well.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 23rd, 2009, 11:50 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
I was not logged on :roll:
Update wrote:
Fixed not to destroy ToolTips on ToolTipClose, otherwise control associated ToolTips were destroyed when they are closed as well.

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2009, 5:27 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2009, 7:51 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 7th, 2009, 12:08 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: infogulch, tomoe_uehara, Xx7 and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group