![]() |
Custom controls on toolbar in dialog? |
Post Reply ![]() |
Author | |
craig ![]() Groupie ![]() Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
craig ![]() Groupie ![]() Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
craig ![]() Groupie ![]() Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |