Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - The alignment problem of Edit control on RibbonBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The alignment problem of Edit control on RibbonBar

 Post Reply Post Reply
Author
Message
vishnu76 View Drop Down
Newbie
Newbie
Avatar

Joined: 15 January 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote vishnu76 Quote  Post ReplyReply Direct Link To This Post Topic: The alignment problem of Edit control on RibbonBar
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vishnu76 View Drop Down
Newbie
Newbie
Avatar

Joined: 15 January 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote vishnu76 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2008 at 11:00am
Hi,
Can you attach screenshot of our sample?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vishnu76 View Drop Down
Newbie
Newbie
Avatar

Joined: 15 January 2008
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote vishnu76 Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2008 at 3:59am
Hi,
 
Looks weird :(
Please open new ticket, or write to 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.