Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Setting control size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting control size

 Post Reply Post Reply
Author
Message
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Topic: Setting control size
    Posted: 20 June 2008 at 12:20pm
If I add controls (CXTPControlButton, CXTPControlEdit, etc.) to a group in a tab in my ribbon bar, I see that the width of each control depends on the control's content. For example, if I add three buttons with captions "A", "B", and "This Is A Long Caption", then the width of the group (or at least that column in the group) is determined by the third button--but the first two buttons don't stretch to fill in the space, and are left-justified within the column.

Most controls seem to exhibit the same behavior, but I see that for some reason CXTPControlEdit has a SetWidth() member. Is there any way to set the width of other controls, or to specify a minimum width for all controls in a group? Is it possible to center controls in their column of the group?

Is there any layout capability (like Qt has, if you know Trolltech's product)?
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: 20 June 2008 at 1:29pm
Hello,
 
You can call SetWidth for normal button also.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2008 at 2:48pm
Thanks, not sure why I didn't see that earlier...
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.047 seconds.