Print Page | Close Window

Accelerators in the "Customizable" sample

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


Topic: Accelerators in the "Customizable" sample
Posted By: MNovaro
Subject: Accelerators in the "Customizable" sample
Date Posted: 26 June 2006 at 8:39am

I saw some problem in the "Customizable" sample, used in VB6 for "accelerator keys".

Selecting a menu item with the mouse generates the correct Message Box: for instance, the

"&New" Clicked

BUT pressing CTRL+N shows:

"" Clicked

I tried to set a breakpoint in the _Execute event, and I saw that the Control.Id is correct (i.e. equal to ID_FILE_NEW), but the value of Control.Caption, that is used in  

MsgBox Control.Caption & " Clicked"

is empty.
Is there any problem?

Thanks in advance for any reply.
Kind regards
Marco



Replies:
Posted By: Oleg
Date Posted: 26 June 2006 at 11:35am
Hello,
It is designed...   when you press key, new control created with id and called Execute event.


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


Posted By: MNovaro
Date Posted: 26 June 2006 at 11:36am
Does this means that I can't "trust" any other properties than the Control.Id?



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