Print Page | Close Window

CommandBarsFrame Execute, which control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7614
Printed Date: 18 June 2025 at 1:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBarsFrame Execute, which control
Posted By: c_verbiest
Subject: CommandBarsFrame Execute, which control
Date Posted: 17 July 2007 at 9:56am
Hi,
Is have a commandbarsframe with keybindings.

If I press a key, the execute event gets a different control than when I press the button on the commandbar.

How can I detect Execute was fired because of a keybinding.
How can I get to the commandbarbutton control with the control that I get when the shortcut key was pressed.

Thanks in advance
Carl




Replies:
Posted By: Oleg
Date Posted: 18 July 2007 at 1:22am
Hi
 
Shortcut is assigned to command id, not to specific button, so when user press key, new temporary button is created and execute is fired - you can check Parent property for such button it will be "Nothing"


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: c_verbiest
Date Posted: 18 July 2007 at 5:54am
Hi Oleg,
thanks,
I now use findcontrol with the id of the temporary button to get the original button. This works for me

Regards
Carl



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net