Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Setting ControlEditBox size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting ControlEditBox size

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


Joined: 24 March 2007
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Topic: Setting ControlEditBox size
    Posted: 10 February 2009 at 3:47am
On my ribbon, I have a number of edit boxes with a label:



The labels vary in length. I'm looking for a way to make the boxes (the edit areas) equally sized, as it all looks a bit cluttered now.
I've tried to use SetWidth and SetLabelWidth, but no success so far as the label width is recalculated when the control is drawn.

I hope someone can help me here!

David.


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: 10 February 2009 at 4:16am
Hi,
You can try add in first column xtpControlLabel and in next line Edits without Labels.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 4:23am
Thanks a lot for your quick reply.

But as I've only two items with one title ('Grandeur') over it, how can I make sure the second column lines up? Can I add an 'empty' control as the first element of the second column?

David.
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: 10 February 2009 at 11:52am
Hi,
 
You can again add xtpControlLabel with empty caption.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 4:53pm
Indeed, that works.

Thanks Oleg.

David.
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.031 seconds.