Skip navigation.
Home
The QNX Community Portal

View topic - writing in PtText

writing in PtText

Isn't the name clear?

writing in PtText

Postby Pogoda » Thu Nov 22, 2012 5:15 pm

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?
Pogoda
Active Member
 
Posts: 29
Joined: Tue Mar 17, 2009 10:37 am

Re: writing in PtText

Postby maschoen » Thu Nov 22, 2012 6:36 pm

Pogoda wrote: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.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests