Print Page | Close Window

How to judge if the commandbars should be update

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=13362
Printed Date: 20 July 2025 at 3:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to judge if the commandbars should be update
Posted By: yanlv
Subject: How to judge if the commandbars should be update
Date Posted: 09 February 2009 at 2:23am
when loadcommandbars(), I hope to judge if the commandbars has been changed, if it's changed, then give me an option to load the new commandbars or still use the old one.

for example: when I change the shortcut key for Copy to Ctrl+C to Alt+W, the program should export a dialog to show these two options when it starts.
Thanks.



Replies:
Posted By: Oleg
Date Posted: 09 February 2009 at 4:49am
Hi,
It always load new commandBars. if you want as option have old one - just don't call LoadCommandBars.


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


Posted By: yanlv
Date Posted: 10 February 2009 at 1:49am
I know what you said now. But tell me how to change the shortcut key.
For example, I didn't set any hot key for copy, but now I hope to set Alt+W for copy, the question is that, even I set Alt+W in my codes, after execute LoadCommands(), the copy still has no hot key. While I need to execute LoadCommands() each time for I need the customized information user sets last time.


Posted By: Oleg
Date Posted: 10 February 2009 at 4:17am
Hi,
If you don't call LoadCommandBars do you see Alt+W ?


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


Posted By: yanlv
Date Posted: 11 February 2009 at 2:24am
I could see alt+w if I don't call loadcommandbars(). 


Posted By: Oleg
Date Posted: 11 February 2009 at 4:40am

Hi,

if you make major update of GUI just change profile for Load/SaveCommandBars calls:
 
f.e
LoadCommandBars("CommandBars2")
SaveCommandBars("CommandBars2")


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



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