![]() |
![]() |
![]() |
![]() |
Remove widgets from a widget database
#include <Ap.h>
int ApDeleteDBWidget( ApDBase_t *db,
char const *wgt_name );
Ap
ApDeleteDBWidget() removes the widget named wgt_name from the widget database indicated by db. If the widget is a container, its children are also removed.
ApDBase_t *my_dbase; my_dbase = ApOpenDBaseFile( "/home/me/mydbase.wgtp" ); ApDeleteDBWidget( my_dbase, "my_icon" ); ApSaveDBaseFile( my_dbase, "/home/me/mydbase.wgtp" );
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
ApCopyDBWidget(), ApOpenDBase(), ApOpenDBaseFile(), ApSaveDBaseFile()
Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |