Print Page | Close Window

Left align edit fields in menus and track pop ups

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=18154
Printed Date: 26 May 2024 at 8:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Left align edit fields in menus and track pop ups
Posted By: cpede
Subject: Left align edit fields in menus and track pop ups
Date Posted: 01 April 2011 at 10:02am
If you have multiple CXTPControlEdit and CXTPControlComboBox controls, how do you left-align all the edit fields. I thought that the SetLabelWidth did the trick, but it does not seem to work on CXTPCommandBars::TrackPopupMenu, and in menus. See the Custom Themes Sample shows how bad it looks, when the Test menu is selected.
 
When used as part of a Ribbon, a method is called CXTPRibbonGroup::ArrangeEditCaption, which I think does it for the Ribbon?
 
This is really needed!
  
-cpede


-------------
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: cpede
Date Posted: 15 June 2012 at 3:04am
I would like to answer this question again!
 
I a CommandBar Track Menu I cannot get Edit controls to be aligned correctly.
 
If I add two CXTPControlEdit controls after each other I get the upper case in the picture below. The Edit fields have different sizes and is not left aligned.
What I want is the lower case where the Edit fields have the same size and is both left and right aligned.
I expected that the SetLabelWidth would force the label to have a certain size. What I see is that this has no effect if I set the labels using SetCaption on the control. But if I use ShowLabel it uses the text from the ID given. Using SetWidth on the control does not have any effect either on the alignment.
 
Please what to do!
 
-cpede


-------------
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



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