Jorge Inostroza
|
Problem with PtGetResource
|
Jorge Inostroza
09/22/2008 12:04 PM
post13776
|
Problem with PtGetResource
hi guys... im still developing in photon.. and i have a weird problem.. im trying to get the data from a text and put it
into another text ..in the text string (ABW_Texto1) i have "test", but when i use the callback i get only trash to the
other text... i hope u can help me.. thanks
this is my callback
int
Enviar( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo ){
char a_message[30];
/* eliminate 'unreferenced' warnings */
widget = widget, apinfo = apinfo, cbinfo = cbinfo;
PtGetResource (ABW_Texto1, Pt_ARG_TEXT_STRING, a_message, 0);
PtSetResource (ABW_Texto2, Pt_ARG_TEXT_STRING, a_message,0);
return( Pt_CONTINUE );
}
|
|
|