controls in a ribbon bar |
Post Reply |
Author | |
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 19 August 2008 at 11:07am |
Hi all,
if I put two edit controls into a ribbon bar group then they are displayed on top of each other like intended. But the width of the edit controls is not the same - They are both aligned to the right side of the 'column' and reach to the right end of the controls label (see picture) I tryed to use CXTPControlEdit::SetWidth() and CXTPControlEdit::SetLabelWidth() but that doesn't seem to have the right effect. I'm afraid that there is no solution to this because in the sample application of the Xtreme Toolkit Pro this problem is 'fixed' by adding some spaces to the end of the shorter label string. But I've seen a sample picture in a forum entry with correct aligned edit controls - so maybe it is possible. Another thing I was wondering about is if it would be possible to 'break' the strict column orientation for the ribbon controls. I like to have to button controls below the edit controls like in this picture: If it is not possible: could one put a whole dialog (resource with own controls) into a ribbon group? Thanks in advance Stefan |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You can try add CXTPControlLabel for captions instead captions of Edit...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Oleg,
how can I do this with the ActiveX CommandBars ? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Same - add xtpControlLabel with captions.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Marco1
Senior Member Joined: 16 January 2004 Location: Germany Status: Offline Points: 251 |
Post Options
Thanks(0)
|
Oleg, can you plese be a little more precisely on that one.
If I add a CXTPControlLabel before a CXTPControlEdit, the EditControl is always in a new line under the ControlLabel but never right of it. So, this doesn't work: pControl = pGroup->Add(xtpControlLabel, 0); pControl->SetCaption(_T("Find")); pControl->SetStyle(xtpButtonCaption); pControl->SetWidth(180); CXTPControlEdit* pControlEdit = (CXTPControlEdit*)pGroup->Add(xtpControlEdit, ID_BUTTON__FIND); pControlEdit->SetWidth(200); How do I get both in onle line as seen in the second picture above? Thanx, Marco |
|
Marco1
Senior Member Joined: 16 January 2004 Location: Germany Status: Offline Points: 251 |
Post Options
Thanks(0)
|
As much as I hate bumps, problem is still open.
Can someone provide a short snippet to get the aligned edit controls as on the picture?! |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Hi Marco,
use pControlEdit->SetFlags(xtpFlagWrapRow); |
|
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 |