XmScale
Submitted by JohnAtLTS on Tue, 04/25/2006 - 21:37.
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?
Tue, 04/24/2007 - 18:09#1
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.
Fri, 06/08/2007 - 09:40#2
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.
Mon, 06/11/2007 - 13:10#3
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 />
Fri, 06/15/2007 - 21:50#4
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.
Tue, 07/17/2007 - 16:46#5
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