Checkbox in Ribbon |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Posted: 15 April 2006 at 2:11pm |
I would like to display a checkbox in a ribbon group. The following code works except that I can't check the checkbox and I get no notification when I click the checkbox.
CButton *pButton = new CButton (); CXTPControlCustom *pControl = CXTPControlCustom::CreateControlCustom(pButton); pGroup->Add(pControl, ID_TEST); |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Guess you need BS_AUTOCHECKBOX style |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Tried that too, I even got the checkbox working but the background of the checkbox has the wrong color. I've tried to catch the WM_ERASEBKGND message but no success. It would be nice if the following line would work pRibbonGroup->Add (xtpControlCheckBox, ID_TEST); P.S.: If the CButton has a valid command id ("ID_TEST") rather than 0 the system checkbox is drawn and then the XTP themed checkbox everytime the MFC is in idle state and calls the update command handlers, so if you move the mouse you have a flickering checkbox.
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Could you please provide a sample with a checkbox on the ribbon? Thanks
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
? |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
I guess I have to wait for the "next release"?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Sorry too much sample requests last week... I preparing new custom CXTPControl for next release, but will attach it here when it will be ready. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello ok, we added xtpControlCheckBox, but unfortunatelly this class changed too much sources (each PaintManager has own implementation of check box area) I afraid you must wait next release. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Thanks oleg, any idea when the next release will be available? P.S.: It would be nice if ON_COMMAND / ON_UPDATE_COMMAND_UI works for the checkbox on the Ribbon because it would then be a drop in replacement for check menu items. Thanks again, Andre |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Hard to say abou next release... May be in 3 - 4 weeks. of course, it support ON_COMMAND / ON_UPDATE_COMMAND_UI. Thanks for patient :) |
|
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 |