|
Re: tutorial give variable to widget
|
11/26/2015 7:55 AM
post115126
|
Re: tutorial give variable to widget
Hi Afif,
You can get a string from your widget and convert it to integer type with PtGetResource().
E.g.
PtGetResource(ABW_my_widget, Pt_ARG_TEXT_STRING, &my_string, 0);
my_int = atoi(my_string);
Also, if you need only integers, you can use PtNumericInteger.
Best regards,
Fedor
|
|
|