Currently I am doing a program which constantly reads and displays values captured by a device, which is connected thru the serial port. The values are displayed in my 3 text widgets(base_text1, base_text2, base_text3). I want to clear the contents in the 3 text widgets when a button is pressed. So I created a button and attached a callback called “reset” to it. Do I use the command PtFlush to clear the contents in my 3 text widgets? If so how do I use it? Attached is my callback function.
Thanks in advance!
int reset (PtWidget_t *widget, Apinfo_t *apinfo, PtCallbackInfo_t *cbinfo)
//eliminate unreferenced warnings
widget=widget, apinfo=apinfo, cbinfo=cbinfo;