Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Slider control on Designer Toolbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Slider control on Designer Toolbar?

 Post Reply Post Reply
Author
Message
rjvaal View Drop Down
Newbie
Newbie


Joined: 20 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rjvaal Quote  Post ReplyReply Direct Link To This Post Topic: Slider control on Designer Toolbar?
    Posted: 20 September 2004 at 9:54am

Does anybody know how I can add a custom slider control to a Designer toolbar?

The CommonControls example creates the control in the ON_XTP_CREATECONTROL handler.  But the handler doesn't get reached when controls are read in from the designer.

Thanks in advance....

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: 21 September 2004 at 7:25am

You must manually add it in code:

pToolbar->GetControls()->add(new CXTPControlCustom()...)

and recreate original controls to support "Reset" command.

pToolbar->GetControls()->CreateOriginalControls();

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rjvaal View Drop Down
Newbie
Newbie


Joined: 20 September 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rjvaal Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2004 at 1:19pm
Thanks Oleg -- when I did this I can create a slider, but it looks very bad when I use the Office2003 theme -- is there any trick to making the slider use the theme?
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: 22 September 2004 at 12:03am

Add manifest file to use XP themes.

(see manifest.xml in our samples)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.