AutoHotkey Community

It is currently May 27th, 2012, 12:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: July 5th, 2011, 2:11 pm 
Offline

Joined: May 25th, 2011, 2:27 am
Posts: 14
When I use special characters (A_Tab, {TAB}, `t) to allign '='s in the text for a tool tip, either the character gets ignored or the text following it is chopped off.

I tried entering literal tabs, and I tried entering {TAB}, but the text remained un-aligned. I also tried %A_Tab%, but the text gets chopped off after the TAB

I an using AHK version 1.1.00.00
I'm running on Windows Vista Home Premium - SP2

Here is a sample script:
Code:
TrayTipStr =
(
Test2.ahk:
abcdef %A_Tab%= text1
abc %A_Tab%= text2
a1 %A_Tab%= text3
)

Menu, Tray, Tip, %TrayTipStr%

#space:: ; WIN_SPACE
exit

This results in the following display when I hover over the tray icon:
Code:
Test2.ahk:
abcdef

To re-create the bug, run my test script, then hover over the tray tip

Originally submitted to the General Questions forum:
http://www.autohotkey.com/forum/viewtopic.php?p=456714

I can work around this issue by using multiple spaces to align the '='s, but that takes up characters from the max allowed on a tool tip.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 4:40 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
I can confirm this bug on Windows XP AHK_L v1.1 x32

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 4:54 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Using tabs in tooltip


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 4:58 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
No solution there either :(
This should at least be added to the docs
TrayTip wrote:
Known Limitation: Using a tab character(`t or %A_Tab%) causes the tip to be truncated to the text before the tab. (e.g., using "AB`tCD" as the text will cause the traytip to only show "AB")

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 5:32 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
This is not a bug, it's by design from Windows (as implied by the discussion jaco linked to):

The system automatically strips the ampersand (&) accelerator characters from all strings passed to a tooltip control, and terminates the string at the first tab character (\t), unless the control has the TTS_NOPREFIX style.


And as was also stated in the thread jaco linked to, this is better served in the Wish List forum, although I'm pretty sure that unless it's a really easy fix, it won't be getting done anytime soon. You could also look into HotKeyIt's advanced ToolTip features.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 6:09 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Would be nice to at least see it in the docs.
"Problems with documented functionality" :arrow: the docs say it displays the text. If it doesn't display all of the text this should be noted.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2011, 1:57 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
I've added the following to the documentation:
Text is truncated at the first tab character, if present.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 3 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