Print Page | Close Window

Commandbar in Mdichild

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=1118
Printed Date: 12 December 2024 at 2:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbar in Mdichild
Posted By: cory
Subject: Commandbar in Mdichild
Date Posted: 31 August 2004 at 4:37am

Hello everybody I'm new in this post, hope u can help me :-)

I use the Commandbar ActiveX v9.10 with vb6 and i get this problem:

I use the commandbar in a MdiChild but it doesn't work if i press the ALT+(Key).It works fine in a MdiContainer, but in MdiChild unfortunately no.Is possible to get the same behavior in child forms?

thanks to everyone.

Corrado




Replies:
Posted By: Boyd
Date Posted: 31 August 2004 at 10:15am

Unless something has changed in the latest release that I'm unaware of, this is a known issue with using multiple instances of the CommandBars object.  The parent CommandBars object will interpret ALL shortcut keys.  Even if the parent CommandBars object doesn't have an accelerator defined for the specified keystroke, the CommandBars object on the child window never receives notification of the keypress.

One workaround is to create an accelerator key in the Parent object that, when executed, will seek out the active MDI Child and route the command to it instead.  The process, however, doesn't work well if you allow the user to customize keystrokes in the CommandBars object on the MDI Child because Codejock doesn't expose any method to know which accelerators have been assigned.



Posted By: cory
Date Posted: 01 September 2004 at 10:40am

Thank u for help!

I'm thinking about writing some code in the keydown event of the child forms as a temporary solution. I hope in the future something will change...otherwise i call my function :-)




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