If I have a PtNumericFloat widget who’s minimum and maximum values are
set, who is responsible for enforcing that the user doesn’t enter a
value outside of the specified range?
Also, the docs say that Pt_CB_NUMERIC_CHANGED must return a Pt_CONTINUE.
What can I do if I want to disallow the change?
I have a PtNumericFloat widget. I want to update it’s value in a
PtTimer callback. But the new value never shows up on the screen.
I am currently doing:
double d = getDoubleValue();
PtSetResource ( ABW_AIN0, Pt_ARG_NUMERIC_VALUE, &d, 0);
printf( "value = %6.3fv, ", d );
The printf() is printing the correct value.
Is there some kind of flush() function I need to call between calls to
the timer callback?
I have tried to update a PtNumericFloat widget exactly as the
helpviewer suggests. It does not work.
double number = 5.55;
PtSetResource (ABW_base_float, Pt_ARG_NUMERIC_VALUE, &number, 0);
What must I do to update a PtNumericFloat widget’s value?
Bill Caroselli <qtps@earthlink.net> wrote:
BC > I have a PtNumericFloat widget. I want to update it’s value in a
BC > PtTimer callback. But the new value never shows up on the screen.
BC > I am currently doing:
BC > double d = getDoubleValue();
BC > PtSetResource ( ABW_AIN0, Pt_ARG_NUMERIC_VALUE, &d, 0);
BC > printf( "value = %6.3fv, ", d );
BC > The printf() is printing the correct value.
BC > Is there some kind of flush() function I need to call between calls to
BC > the timer callback?