Print Page | Close Window

How to determine keyboard combinations

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=3743
Printed Date: 21 June 2025 at 11:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to determine keyboard combinations
Posted By: Peso
Subject: How to determine keyboard combinations
Date 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.




Replies:
Posted By: Oleg
Date 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


Posted By: Peso
Date 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)




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