Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Splitter popup button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Splitter popup button

 Post Reply Post Reply
Author
Message
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Topic: Splitter popup button
    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), 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?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2004 at 3:56am
See CustomeThemes s example.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post 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!



Edited by thodgson
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2004 at 7:07am

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

Tim

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.