I am porting an application to Mac OS X which originally (~1995) was written for SGI IRIX. I notice that none of the scale widget titles (set via XmNtitleString) are displaying. Is anyone familiar with this problem? |
|||
|
User login |
|
|
All trademarks and copyrights on this page are properties of their respective owners. The rest is copyright © Integrated Computer Solutions Inc., 2003 - 2012 |
dpeterc
XmScale
This is bug #1373
one year later, it has not yet been fixed,
at least not on OpenMotif 2.3 beta2, as shipped with SUSE 10.2
Sadly, a regression like that makes other OM 2.3 improvements
quite useless, since most non-trivial apps will have scale widgets.
Bass
This may not be very helpful...
... but if you wish to use a stable Motif distribution, you might want to look at the IST's (http://www.ist.co.uk) versions of Motif.
They continue to fix bugs in the original 2.1.30 release;
bugfix releases 2.1.31 and 2.1.32 are available.
Yuriy Syrota
XmScale
The following code draws titles with OM 2.3 for me:
<br /> #include <Xm/Xm.h><br /> #include <Xm/XmAll.h></p> <p>int<br /> main(int argc, char **argv)<br /> {<br /> Widget toplevel;<br /> Widget sb;<br /> Arg arg[10];<br /> Cardinal n;<br /> XtAppContext app;</p> <p> toplevel = XtAppInitialize(&app, "Sms",<br /> NULL, 0, &argc, argv, NULL, NULL, 0);</p> <p> n = 0;<br /> XtSetArg(arg[n], XmNtitleString, XmStringCreateSimple("label")); n++;<br /> sb = XmCreateScale(toplevel, "sb", arg, n);<br /> XtManageChild(sb);</p> <p> XtRealizeWidget(toplevel);<br /> XtAppMainLoop(app);</p> <p> return 0;<br /> }<br />dpeterc
XmScale
Try adding this line after first AtSetArg
XtSetArg(arg[n], XmNshowValue, TRUE); n++;
and you will see that it does not work.
The label is only shown, if value is not shown.
Please fix this bug, I hate to create workarounds around
correct code which worked for ages.
Thank you in advance.
dpeterc
XmScale
I have just compiled OpenMotif 2.3 from source,
and applied the correction in Scale.c from cvs
and now it works!
Thank very much.
Dusan Peterc
http//www.arahne.si