Warning:  main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 1
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 1
Warning:  main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 8
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 8
Remove widgets from a widget database
#include <Ap.h>
int ApDeleteDBWidget( ApDBase_t *db,
                      char const *wgt_name );
- db
 
- A pointer to a widget database that you opened with either 
  ApOpenDBase()
  or
  ApOpenDBaseFile().
 
- wgt_name
 
- The instance name of the widget that you want to delete.
 
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.
- 0
 
- Success.
 
- -1
 
- Failure.
 
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
Warning:  main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 134
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apdeletedbwidget.html on line 134