Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XmOptionMenu Margin Problem

23 views
Skip to first unread message

Jake Colman

unread,
Oct 4, 2012, 5:58:17 PM10/4/12
to

I have three forms that are visually stacked vertically with each form
having several widgets laid out horizontally. All three forms have the
left-most widget left-attached to the form. The first two forms have a
XmPushButton as the left-most widget while the third form has an
XmOptionMenu as the left-most widget. The two pushbuttons are aligned
nicely with each other with a reasonable amount of margin between the
widget and the form. The XmOptionMenu has a bigger left margin so it is
not left-aligned with the other widgets. How can I rectify this?

--
Jake Colman | Director, Software Development
PRINCIPIA | 101 West Elm Street | Suite 620 | Conshohocken | PA 19428
t: +1 (610) 755 9786 | f: +1 (201) 221 8929
e: col...@ppllc.com | w: www.principiaSFP.com
Know your investments

FredK

unread,
Oct 5, 2012, 10:37:42 AM10/5/12
to
On Thursday, October 4, 2012 2:58:18 PM UTC-7, Jake Colman wrote:
> I have three forms that are visually stacked vertically with each form having several widgets laid out horizontally. All three forms have the left-most widget left-attached to the form. The first two forms have a XmPushButton as the left-most widget while the third form has an XmOptionMenu as the left-most widget. The two pushbuttons are aligned nicely with each other with a reasonable amount of margin between the widget and the form. The XmOptionMenu has a bigger left margin so it is not left-aligned with the other widgets. How can I rectify this? -- Jake Colman | Director, Software Development PRINCIPIA | 101 West Elm Street | Suite 620 | Conshohocken | PA 19428 t: +1 (610) 755 9786 | f: +1 (201) 221 8929 e: col...@ppllc.com | w: www.principiaSFP.com Know your investments


An OptionMenu is an XmRowColumn. Check these resources of your buttons and the OpeingMenu to figure out how to get the alignment that you want:
XmNborderWidth
XmNshadowThickness
XmNentryBorder )OptionMenu)
XmNmarginWidth
XmNspacing (OptionMenu)
XmNhighlightThickness (Pushbutton)
XmNmarginLeft (Pushbutton)

Or you can just adjust the XmNleftOffset values for the buttons and option menu so that things line up correctly.

0 new messages