Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBarsFrame Execute, which control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBarsFrame Execute, which control

 Post Reply Post Reply
Author
Message
c_verbiest View Drop Down
Newbie
Newbie


Joined: 17 July 2007
Location: Belgium
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote c_verbiest Quote  Post ReplyReply Direct Link To This Post Topic: CommandBarsFrame Execute, which control
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
c_verbiest View Drop Down
Newbie
Newbie


Joined: 17 July 2007
Location: Belgium
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote c_verbiest Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.051 seconds.