![]() |
Checkbox in Ribbon |
Post Reply
|
| Author | |
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Topic: Checkbox in RibbonPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 April 2006 at 10:45am |
|
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)
Quote Reply
Posted: 18 April 2006 at 2:48pm |
|
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)
Quote Reply
Posted: 26 April 2006 at 6:34am |
|
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)
Quote Reply
Posted: 08 May 2006 at 11:16am |
|
? |
|
![]() |
|
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2006 at 10:17am |
|
I guess I have to wait for the "next release"?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2006 at 10:20am |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2006 at 4:40pm |
|
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)
Quote Reply
Posted: 09 May 2006 at 5:12pm |
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2006 at 8:46am |
|
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 |