Print Page | Close Window

Checkbox on CXTPToolBar

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


Topic: Checkbox on CXTPToolBar
Posted By: Booster
Subject: Checkbox on CXTPToolBar
Date Posted: 08 July 2008 at 11:44am

Hello.

I need to place а checkbox on CXTPToolBar.
 
m_pCheckBox = new CButton;
bool ret = m_pCheckBox->Create("", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, CRect(10, 2, 20, 20), pXTPToolBar, 0x1110);
pXTPToolBar->GetControls()->Add(xtpControlSplitButtonPopup,1);
 
Does not work as it is necessary. Both of an controls on one place.
How it can be made?
 
 



Replies:
Posted By: Oleg
Date Posted: 08 July 2008 at 12:41pm
replace all 3 lines to
 
pXTPToolBar->GetControls()->Add(xtpControlCheckBox,1);


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


Posted By: Booster
Date Posted: 10 July 2008 at 9:12am
In xtpcommandbarsdefines.h there are only these constants:

enum XTPControlType

{

xtpControlError, // Type is not defined.

xtpControlButton, // Button type.

xtpControlPopup, // Popup type.

xtpControlButtonPopup, // Button popup.

xtpControlSplitButtonPopup, // Split button popup.

xtpControlComboBox, // Combo box button.

xtpControlEdit, // Edit control.

xtpControlCustom, // Custom control.

xtpControlLabel // Label control

};

Where to take xtpControlCheckBox?
Search has not given result. Xtreme Toolkit Pro v9.60


Posted By: Oleg
Date Posted: 10 July 2008 at 9:23am
Hi,
 
Added in 10.2 release... :-(


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


Posted By: Booster
Date Posted: 10 July 2008 at 9:26am
We can not use other version. What to do?


Posted By: Oleg
Date Posted: 10 July 2008 at 12:47pm
Hi,
 
Check Samples/CommandBars/CommonControls sample it shows how to add any button to toolbar.


-------------
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