I have two PtNumericInteger widgets on my GUI. When widget 1 is changed, I want widget 2 to be loaded with the same value. The problem is that widget 2 (range ± 2147483648) is always loaded with a really large value = 134626656, instead of the value of widget 1 (with value range 1 to 6). When I load a fixed value into widget 2 it works, so I’m assuming that I am not using PtGetResource() properly.
Please help. Thanks.
int EdtWidget1_onChange(PtWidget_t*widget, ApInfo_t *apinfo, PtCallbackInfo_t *coinfo)
int iTemp1, iTemp2;
PtGetResource(ABW_EDT_WIDGET1, Pt_ARG_NUMERIC_VALUE, &iTemp1,0);
iTemp2 = iTemp1;