AutoHotkey Community

It is currently May 27th, 2012, 11:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 6th, 2005, 6:12 pm 
Offline

Joined: July 4th, 2004, 4:58 pm
Posts: 19
Chris,

After asking for help on Using Contextmenu on Tabs: ( http://www.autohotkey.com/forum/viewtopic.php?t=5680 ),

It seems that ContextMenu works with the following Controls on Tabs: Tab - Button - Checkbox - Radio - Listbox - ListView - DateTime - Slider -Progress.

But, "Does not work" with any of these Controls: Text - Picture - MonCal - ComboBox - Edit - Groupbox

It would be nice if ContextMenu would work with a couple of those which are currently on the "Does Not Work" list.

Obviously, I am most interested in the Text Control. However, it would be helpful if you could implement this feature with Text, Pictures and/or GroupBoxes.

Thank You
Larry


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 7th, 2005, 1:15 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
larl473032004 wrote:
It seems that ContextMenu ... "Does not work" with any of these Controls: Text - Picture - MonCal - ComboBox - Edit - Groupbox
I just tested it and it seems to work. However, I notice that a Text control inside a GroupBox isn't detected for right-click, which might be the same thing you were seeing if a text control is inside a tab control. I'll look into this.

Here's a test script:
Code:
Gui, Add, Text, vMyText1, Right click anywhere in this window.
Gui, Add, GroupBox, vMyGroupbox r5, Sample Group
Gui, Add, Button, vMyButton xp+10 yp+25, Sample Button
Gui, Add, Text, vMyText2, Sample Text
Gui, Add, Edit, r2, This has its own,`nbuilt-in context menu.
Gui, Show
return

GuiContextMenu:
ToolTip You right-clicked %A_GuiControl%.
return

GuiClose:
ExitApp

Also note that MonthCal and Edit have their own context menus, which has been documented.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 22nd, 2005, 1:35 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I believe v1.0.40.01 fixes the above issue:
Quote:
Fixed GuiContextMenu's A_GuiControl to be accurate for Text and Picture controls inside a GroupBox or Tab control.

Thanks for reporting it, and please let me know if you have any further trouble with it.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 22nd, 2005, 9:56 pm 
Offline

Joined: July 4th, 2004, 4:58 pm
Posts: 19
Chris,

Works Great. Thanks a lot

Larry


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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