D
Daniel Tscharnuter
Hello!
First of all, I am new to C++.
The problem with the scale widget is that I get a segmentation fault when I
want to create it with more than zero decimal numbers.
beta_scale_ = XtVaCreateManagedWidget("betascale",
xmScaleWidgetClass, form_left,
XmNtitleString, title,
XmNorientation, XmHORIZONTAL,
XmNminimum, 1,
XmNmaximum, 10000,
XmNdecimalPoints, 2,
XmNshowValue, True,
XmNvalue, 100,
XmNwidth, SCALE_WIDTH,
XmNheight, SCALE_HEIGHT,
NULL);
It worked that way in C, but in C++ it only works with XmNdecimalPoints set
to 0.
Thanks,
Daniel
First of all, I am new to C++.
The problem with the scale widget is that I get a segmentation fault when I
want to create it with more than zero decimal numbers.
beta_scale_ = XtVaCreateManagedWidget("betascale",
xmScaleWidgetClass, form_left,
XmNtitleString, title,
XmNorientation, XmHORIZONTAL,
XmNminimum, 1,
XmNmaximum, 10000,
XmNdecimalPoints, 2,
XmNshowValue, True,
XmNvalue, 100,
XmNwidth, SCALE_WIDTH,
XmNheight, SCALE_HEIGHT,
NULL);
It worked that way in C, but in C++ it only works with XmNdecimalPoints set
to 0.
Thanks,
Daniel