Print Page | Close Window

CPropertyPage and adding combo boxes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9787
Printed Date: 14 November 2025 at 7:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CPropertyPage and adding combo boxes
Posted By: terrym
Subject: CPropertyPage and adding combo boxes
Date Posted: 04 March 2008 at 8:46am
CPropertyPage and adding combo boxes, how would we add an XTP combo box to a CPropertyPage???  We cant seem to find example.
 
Obviously easy but just brain dead today :)
 
Thanks for any help.
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: terrym
Date Posted: 05 March 2008 at 9:59am

Hope somebody can really help here :(

We have a CDialog and want to put a CXTPComboBox object onto it, how do we do this please?
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: znakeeye
Date Posted: 05 March 2008 at 11:23am

You can't. Besides, why would you want to do that? We have:

CComboBox, CComboBoxEx, CXTComboBox...


Posted By: Oleg
Date Posted: 05 March 2008 at 11:26am
Hi,
 
yes, CXTPControlComboBox  can be only part of ToolBar.
if you reeeeeally want add it - add CXTPToolBar + single CXTPControlComboBox.


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


Posted By: terrym
Date Posted: 05 March 2008 at 11:42am

Hi

Is there example code on this working in a CDialog ???
 
Cheers
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 05 March 2008 at 1:08pm
Hi,
 
Do you need example how to put CXTPToolBar to dialog or how to put CXTPControlComboBox to CXTPToolBar ? :-)  There are a lof of samples of both.


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


Posted By: terrym
Date Posted: 05 March 2008 at 1:10pm
Hi
 
I need both please
 
Cheers
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 06 March 2008 at 8:16am
To create something like:
 
VERIFY(m_wndToolBar.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this));
CSize sz = m_wndToolBar.CalcDockingLayout(cx, LM_HIDEWRAP| LM_HORZDOCK|LM_HORZ | LM_COMMIT);
  m_wndToolBar.MoveWindow(0, nTop, cx, sz.cy);
  m_wndToolBar.Invalidate(FALSE);
 
to add combo
m_wndToolBar.GetControls()->Add(xtpControlComboBox, ID);


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


Posted By: terrym
Date Posted: 13 March 2008 at 10:40am
Thanks, much appreciated


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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