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

Issue With Widget Sizing via UIL

18 views
Skip to first unread message

Jake Colman

unread,
Aug 7, 2012, 9:15:48 PM8/7/12
to

We do all of our screen layout using UIL files. In the file I have a
form, inside of a frame, that horizontally lines up two pushbuttons. I
now want to add an optio menu to the right. When I add the option menu,
the frame gets fatter and the pushbuttons increase in height. The
option menu, however, looks fine. How do I get the pushbuttons to
remain the height that they were before adding the option menu?

What follows the UIL fragment the describes what I did.
OISDiscountingRC was added as a container for OISDiscounting just to see
it would help. I have the same problem is I use OISDiscounting directly
in the form.

Thanks for any help.

object ABSAmortDetFrame : XmFrame {
controls{
XmForm ABSAmortDetForm;
};
arguments {
XmNtopAttachment = XmATTACH_WIDGET;
XmNtopWidget = XmFrame ABSTagTradeFrame;
XmNbottomAttachment = XmATTACH_NONE;
XmNleftAttachment = XmATTACH_FORM;
XmNrightAttachment = XmATTACH_FORM;
XmNmarginHeight = 2;
XmNmarginWidth = 2;
};
};

object ABSAmortDetForm : XmForm {
controls{
XmPushButton ABSAmortDButton;
XmPushButton ABSForecastButton;
XmRowColumn OISDiscountingRC;
};
arguments {
};
};

object ABSAmortDButton : XmPushButton {
arguments {
XmNtopAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM;
XmNleftAttachment = XmATTACH_FORM;
XmNrightAttachment = XmATTACH_NONE;
XmNlabelString = "Amortization Detail...";
};
callbacks {
MrmNcreateCallback = procedure bindCB("ABSAmortDButton");
XmNactivateCallback = procedures {
manageTransientWindowCB( "ABSAmortD" );
};
};
};

object ABSForecastButton : XmPushButton {
arguments {
XmNtopAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM;
XmNleftAttachment = XmATTACH_WIDGET;
XmNleftWidget = ABSAmortDButton;
XmNrightAttachment = XmATTACH_NONE;
XmNlabelString = "Forecast Assumptions...";
};
callbacks {
MrmNcreateCallback = procedure bindCB("ABSForecastButton");
XmNactivateCallback = procedures { manageTransientWindowCB( "ABSForecast" ); };
};
};

object OISDiscountingRC : XmRowColumn {
controls{
XmOptionMenu OISDiscounting;
};
arguments {
! XmNalignment = XmALIGNMENT_CENTER;
XmNtopAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM;
XmNleftAttachment = XmATTACH_WIDGET;
XmNleftWidget = ABSForecastButton;
XmNrightAttachment = XmATTACH_FORM;
};
};

OISDiscounting : XmOptionMenu {
arguments {
XmNrowColumnType = XmMENU_OPTION;
XmNorientation = XmVERTICAL;
};
controls {
XmPulldownMenu{};
};
callbacks {
MrmNcreateCallback = procedure bindCB("OISDiscounting");
};
};



--
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: col...@ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008, 2009 & 2010

Fred K

unread,
Aug 8, 2012, 2:27:57 PM8/8/12
to
Don't attach the buttons to the bottom of the form.
If you do, then when you add something else that
causes the form to get taller, the button will stretch
to fill the form.

Jake Colman

unread,
Aug 9, 2012, 12:05:34 PM8/9/12
to
>>>>> "FK" == Fred K <Fred> writes:

FK> Don't attach the buttons to the bottom of the form.
FK> If you do, then when you add something else that
FK> causes the form to get taller, the button will stretch
FK> to fill the form.

Thanks, Fred, that did it.
0 new messages