Print Page | Close Window

How to add an XTPToolbar derived class?

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=161
Printed Date: 29 April 2024 at 6:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add an XTPToolbar derived class?
Posted By: clintsinger
Subject: How to add an XTPToolbar derived class?
Date Posted: 16 September 2003 at 4:46pm

Hi,

I have a special need where I want to have an owner drawn toolbar. My need is to have a toolbar with four combo boxes and above each combobox is a line one of four colours.  When I click on a combobox I want it to auto populate with data from a database so that the combobox is dynamic.  In my mind, it seems that the best way to do this is class derived from CXTPToolbar.

Unfortunately there doesn't seem to be anyway to make a class that is derived from CXTPToolbar and use it.  The only thing that I can see is to use ->Add(...) from CXTPCommandBars and then call pCommandBar->LoadToolbar(IDR_RESOURCE) on the command bar that is returned from the Add(...) call.  This doesn't help because it creates it's own toolbar.  What we need is something like pCommandBars->Add(&MyCXTPToolbarDerivedClass).

Is there anyway to do something like this in the current ToolkitPro (8.0)?

Cheers,

Clint




Replies:
Posted By: Oleg
Date Posted: 17 September 2003 at 12:10am
On this week we will release Suite Pro 8.5. There will be sample of common controls on the toolbar.



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