![]() |
Checkbox on CXTPToolBar |
Post Reply ![]() |
Author | |
Booster ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
replace all 3 lines to
pXTPToolBar->GetControls()->Add(xtpControlCheckBox,1);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Booster ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Added in 10.2 release... :-(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Booster ![]() Groupie ![]() Joined: 08 July 2008 Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
We can not use other version. What to do?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Check Samples/CommandBars/CommonControls sample it shows how to add any button to toolbar.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |