I would like to know if it is possible to create PtRaw widget at run time.
Suppose i have a window with several widget of PtRaw type all contained in a
widget of type PtOSContainer. I want delete one of the widgets and adding a
new one.
Is it possible ?
Sure this is possible. You can simply setup the arguments you want and then
use the PtCreateWidget() and PtRealizeWidget() to make your new widget
visible.
Here is a small example that I had attached to a button click callback.
/*****************/
PtWidget_t *mywidget;
int
CreateRawWidget( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t
*cbinfo )
{
int numargs = 0;
PtArg_t args[10];
PhArea_t area;
I would like to know if it is possible to create PtRaw widget at run time.
Suppose i have a window with several widget of PtRaw type all contained in
a
widget of type PtOSContainer. I want delete one of the widgets and adding
a
new one.
Is it possible ?