Print Page | Close Window

The alignment problem of Edit control on RibbonBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9308
Printed Date: 02 October 2024 at 8:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: The alignment problem of Edit control on RibbonBar
Posted By: vishnu76
Subject: The alignment problem of Edit control on RibbonBar
Date Posted: 15 January 2008 at 4:21am

Hello all,

I have one two problem. First is the alignment problem. I want to add two Edit controls in RibbonBar. These are for width/height. Therefore I want those to be vertical aligned. But those are aligned like below.
 
 
The codes are below.

 CXTPControl * control = sizeGroup->Add(xtpControlLabel, ID_GROUP_IMAGE_SIZE);
 control->SetID(0);
 control->SetStyle(xtpButtonCaption);
 CXTPControlEdit * editControl = (CXTPControlEdit * )sizeGroup->Add(xtpControlEdit, ID_IMAGE_WIDTH);
 editControl->SetWidth(120);
 editControl->ShowSpinButtons();
 editControl = (CXTPControlEdit * )sizeGroup->Add(xtpControlEdit, ID_IMAGE_HEIGHT);
 editControl->SetWidth(120);
 editControl->ShowSpinButtons();
 
The second problem is when I resize the window, the the font of text in edit control and combobox is got bigger. Look like below
 
 
How can I fix these problem? Please help.
 
Info. The toolkit version is 11.2.2 and Visual Studio 2005 and Vista



Replies:
Posted By: Oleg
Date Posted: 15 January 2008 at 8:43am
Hello,
 
1. Just don't call SetControlsGrouping.
 
2. Can you reproduce it with our sample ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: vishnu76
Date Posted: 15 January 2008 at 9:48am
Hello,
 
1. I don't call SetControlsGrouping()
 
2. It is reproduced at the ribbon sdi sample of CodeJock.


Posted By: Oleg
Date Posted: 15 January 2008 at 11:00am
Hi,
Can you attach screenshot of our sample?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: vishnu76
Date Posted: 15 January 2008 at 11:38am

I attached the screen shot of the ribbon sdi sample.

And, don't you have an idea of the problem 1?
 


Posted By: Oleg
Date Posted: 16 January 2008 at 3:59am
Hi,
 
Looks weird :(
Please open new ticket, or write to mailto:support@codejock.com - support@codejock.com - I need more details about your locale, what steps you do to reproduce it.
For 1 I need your whole mainfrm.cpp to check, please attach it in issue.
Thanks.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net