Hello! I’m new in qnx4 photon programming. Please tell, me, how I can read text from file to PtText widget in Aplication Builder Program?
Check the documentation for PtGetResource() and PtGetResources().
PtGetResource() is easier to use if you are just reading one resource.
From memory, I think this will work:
char *str_var;
PtGetResource(widget, PT_ARG_TEXT_STRING, &str_var, 0);
or if you know the name of the widget: ABW_widget_name instead of widget.