Print Page | Close Window

Slider control on Designer Toolbar?

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


Topic: Slider control on Designer Toolbar?
Posted By: rjvaal
Subject: Slider control on Designer Toolbar?
Date 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....




Replies:
Posted By: Oleg
Date 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


Posted By: rjvaal
Date 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?


Posted By: Oleg
Date 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



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