Print Page | Close Window

Custom controls on toolbar in dialog?

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=2713
Printed Date: 06 October 2024 at 1:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom controls on toolbar in dialog?
Posted By: craig
Subject: Custom controls on toolbar in dialog?
Date Posted: 11 August 2005 at 4:51pm
I have a CXTPToolbar inside of a CXTPDialog that I would like to add custom controls to (Font list dropdown, font size dropdown, etc).  Is there a sample or documentation  availale on how to do this?

I've been searching the forum and the online docs for a couple of hours now with no luck.  Any help would be really appreciated. 

Thanks,
Craig





Replies:
Posted By: craig
Date Posted: 12 August 2005 at 2:10am
A quick followup.  In a dialog based on CXTPDialog, what is the equivilent funtion to

int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)

which I think I need to create the controls.  It is described in the common controls example as:

// This function is called by the Extreme Tool Kit application framework.
// This function handles the creation of the controls that are placed
// on the CommandBars.  The LPCREATECONTROLSTRUCT structure contains information
 // about the control to create.

Thanks,
Craig



Posted By: Oleg
Date Posted: 12 August 2005 at 2:41pm

Actually, same message will be sent to dialog...

But you can use CXTPControls class instead:

m_wndToolBar.GetControls()->Add(new CXTPControlCustom()....);

for next release, we made a lot of enhancements of CXTPDialog to allow docking/customization.



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


Posted By: craig
Date Posted: 14 August 2005 at 12:16am
Thanks for the help.  I managed to get it working with GetControls()->Add().  I appreciate the time you spend answering questions in the forums.

--Craig




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