Print Page | Close Window

Splitter popup button

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=1042
Printed Date: 06 March 2025 at 8:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Splitter popup button
Posted By: thodgson
Subject: Splitter popup button
Date Posted: 09 August 2004 at 2:54pm

In the online KB article: HOW TO: Add a splitter popup button that doesn't disappear ( http://www.codejock.com/support/KB_PRO/000003.asp - http://www.codejock.com/support/KB_PRO/000003.asp ), it states:

 

If you use Customizable toolbars you must avoid dynamic creation of controls. You must use the ‘Xtreme Control Subclassing’ technique”

 

I use command bars, and am unable to get a splitter popup button to work.  Is it possible to even do this?  If so, can someone point me to one of the samples?




Replies:
Posted By: Oleg
Date Posted: 10 August 2004 at 3:56am
See CustomeThemes s example.

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


Posted By: thodgson
Date Posted: 10 August 2004 at 9:51am

Thanks.

Looking at the example it is unclear how the menu and toolbar for the Hex button are created or hooked-up dynamically.  How is this done?

In the OnCreateControl method, the Hex button is set to be a popup, but there is no clear evidence how the menu and tool bar are attached to this button control.  Seems like black magic!



Posted By: Oleg
Date Posted: 11 August 2004 at 2:04am

from FAQ you mentioned:

Using the resource editor, create a Popup menu with same command id as the toolbar button you just added.

 



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


Posted By: thodgson
Date Posted: 11 August 2004 at 7:07am

Ah, yes.  That's the part I missed.  Thank you for pointing that out.

Tim




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