Hello all! I have a question to ask.
How do I display a series of text in the multitext window when a button is pressed? I can’t seem to execute my code. What is wrong?
int start(PtWidget_t *widget, Apinfo_t *apinfo, PtCallbackInfo_t *cbinfo)
{
PtMultiLines_t args[5];
PtSetArg(&args[0], Pt_ARG_TEXT_SUBSTRING, “Your name:\n”,0);
PtSetArg(&args[1], Pt_ARG_TEXT_SUBSTRING, “Your address:\n”,0);
PtSetResources(ABW_base_multitext, 5, 0);
widget=widget, apinfo=apinfo, cbinfo=cbinfo;
return(Pt_CONTINUE);
}
where the instance name for the multitext window is called base_multitext and the attached callback to the button is called start.
Thanks in advance.