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