View topic - writing in PtText
writing in PtText
2 posts
• Page 1 of 1
writing in PtText
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
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: 2657
- Joined: Wed Jun 25, 2003 5:18 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest