Remove widgets from a widget database
#include <Ap.h> int ApDeleteWidget( ApDBase_t *db, char const *wgt_name );
ApDeleteDBWidget() removes the widget named wgt_name from the widget database indicated by db. Only a single widget is deleted with this function; if a container widget is deleted, its child widgets remain in the database.
ApDBase_t *my_dbase; my_dbase = ApOpenDBaseFile( "/home/me/mydbase.wgtp" ); ApDeleteWidget( my_dbase, "my_icon" ); ApSaveDBaseFile( my_dbase, "/home/me/mydbase.wgtp" );
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
ApCopyWidget(), ApOpenDBase(), ApOpenDBaseFile(), ApSaveDBaseFile()
Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide