Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - KeyBindings Events not firing.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

KeyBindings Events not firing.

 Post Reply Post Reply
Author
Message
Brian42 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2008
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brian42 Quote  Post ReplyReply Direct Link To This Post Topic: KeyBindings Events not firing.
    Posted: 28 February 2009 at 2:41pm
I have a C# application, and I'm trying to get the KeyBinding events to fire.  Below is the code I'm using... However, I never see any of these events getting fired.  Is there any "trick" to this... Or is there a bug.

Thanks in advance.

Brian
 
My code is
 

this.CommandBars.KeyBindings.BeforeTranslate += new XtremeCommandBars.IKeyBindingsEvents_BeforeTranslateEventHandler(KeyBindings_BeforeTranslate);

this.CommandBars.KeyBindings.BeforeRemove += new XtremeCommandBars.IKeyBindingsEvents_BeforeRemoveEventHandler(KeyBindings_BeforeRemove);

this.CommandBars.KeyBindings.BeforeAdd += new XtremeCommandBars.IKeyBindingsEvents_BeforeAddEventHandler(KeyBindings_BeforeAdd);

 

the event handlers are..

void KeyBindings_BeforeTranslate(int Command, ref object Cancel)

{

throw new NotImplementedException();

}

void KeyBindings_BeforeRemove(int fVirt, int Key, int Command, ref object Cancel)

{

throw new NotImplementedException();

}

void KeyBindings_BeforeAdd(int fVirt, int Key, int Command, ref object Cancel)

{

throw new NotImplementedException();

}

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: 02 March 2009 at 12:35am
Hi,
 
First you need add form variable KeyBindings:
 
KeyBindings = this.CommandBars.KeyBindings;
 
These events fire when user change keybindings in customization dialog.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Brian42 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2008
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brian42 Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 10:10am
Thank you.  That did the trick.
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.188 seconds.