![]() |
Checkbox in ribbon |
Post Reply ![]() |
Author | |
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 04 November 2007 at 6:19pm |
Hi,
I have a problem with checkbox control in the RibbonBar. When placing controls in a group, checkbox is always positioned at the top of the column. Even if one is followed by the another checkbox, the second checkbox is also positioned in the new column. I have tried to force wrap by setting xtpFlagWrapRow flag, but it didn't help either. Is there any way to circumvent this? I'm using toolkitpro version 11.1.3 Best Regards, Pavol. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Show code you tried.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Here is the code for the problematic checkboxes: CXTPRibbonGroup* pGroup=AddGroup(ID_OBJECT_LINES_GROUP); pGroup->SetControlsCentering(TRUE); ..... { CXTPControl* pControl= pGroup->Add(xtpControlCheckBox, ID_CONNECT_LINES_3D); pControl->SetTag(VIEWID(NView::ELEMID_CONNECT_LINES, 0)); pControl->SetBeginGroup(TRUE); } { CXTPControl* pControl= pGroup->Add(xtpControlCheckBox, ID_CONNECT_LINES_WIDTH_BY_OBJECT); pControl->SetTag(VIEWID(NView::ELEMID_CONNECT_LINES, 0)); } And here is the screenshot: ![]() Regards, Pavol. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Sorry, again can't reproduce.
I tried add this code to our sample:
CXTPRibbonGroup* pGroupShowHide = pTabView->AddGroup(ID_GROUP_SHOWHIDE);
pGroupShowHide->SetControlsCentering(TRUE); pGroupShowHide->Add(xtpControlComboBox, ID_EDIT_PASTE)->SetStyle(xtpButtonIconAndCaption);;
pGroupShowHide->Add(xtpControlComboBox, ID_EDIT_PASTE)->SetStyle(xtpButtonIconAndCaption);; pGroupShowHide->Add(xtpControlPopup, ID_EDIT_PASTE)->SetStyle(xtpButtonIconAndCaption); pControl = pGroupShowHide->Add(xtpControlCheckBox, ID_VIEW_RULER); pControl->SetBeginGroup(TRUE); pControl->SetCaption("3D Lines"); pControl = pGroupShowHide->Add(xtpControlCheckBox, ID_VIEW_GRIDLINES); pControl->SetCaption("Width By Object"); and see it right. May be something was fixed in newer versions. Can you download 11.2.1 to check ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
I tried to insert your code into our application and play around to see what causes the problem.
Finally I have found the problem. In our code, the second checkbox is associated with a resource, that have an icon. In the case of checkbox it is used only for tooltip. Yet, the framework probably applied default button style (xtpButtonIconAndCaptionBelow) when it was positioning the checkxbox. Using pControl->SetStype(xtpButtonIconAndCaption) have fixed the problem. Best Regards, Pavol |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Thanks for let us know.
|
|
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 |