Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to determine keyboard combinations
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to determine keyboard combinations

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


Joined: 02 March 2006
Location: Sweden
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peso Quote  Post ReplyReply Direct Link To This Post Topic: How to determine keyboard combinations
    Posted: 08 March 2006 at 4:23am

I have a dynamic context menu made of a barpopup commandbar. one of these menu items on the context menu is "delete".
now i want to differentiate between a "normal" delete and a "hard" delete when choosing the menu item with ctrl key and without ctrl key.

just as in internet explorer, when clicking refresh button a refresh is made from cache but when clicking refresh and holding down ctrl key, the cache is purged and the page is reloaded form source.

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: 08 March 2006 at 11:48am

Hello,

You can check state of Ctrl in OnExecute event. Export GetKeyState from User32.dll.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Peso View Drop Down
Newbie
Newbie


Joined: 02 March 2006
Location: Sweden
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peso Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2006 at 3:47am

Would it be possible to include following parameters (Button, Shift) in future versions?

CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Button As Integer, ByVal Shift As Integer)

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.125 seconds.