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/apopendbase.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/apopendbase.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/apopendbase.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/apopendbase.html on line 8
Open a module as a widget database
#include <Ap.h>
ApDBase_t *ApOpenDBase(
ApEventLink_t const *link_callback );
- link_callback
- The ABM_ internal link manifest, generated by PhAB, of the
module that you want to open.
Ap
ApOpenDBase() opens the given module as a widget database.
Typically, the module is a picture, but it can also be a window or dialog.
ApOpenDBaseFile()
lets you open an external module file as a widget database.
A pointer to a PhAB picture database structure, or
NULL for failure.
ApDBase_t *mydbase;
PtArg_t args[2];
mydbase = ApOpenDBase( ABM_mypicture );
PtSetArg( &args[0], Pt_ARG_TEXT_STRING,
"This Widget", 0 );
ApCreateWidget( mydbase, "my_label_widget", 10, 10, 1,
args );
PtSetArg( &args[0], Pt_ARG_TEXT_STRING,
"That Widget", 0 );
PtSetArg( &args[1], Pt_ARG_FILL_COLOR, Pg_WHITE, 0 );
ApCreateWidget( mydbase, "my_label_widget", 10, 30, 2,
args );
ApCloseDBase( mydbase );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ApAddClass(),
ApCreateDBWidget(),
ApCreateDBWidgetFamily(),
ApCreateWidget(),
ApCreateWidgetFamily(),
ApGetDBWidgetInfo(),
ApCloseDBase(),
ApOpenDBaseFile()
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/apopendbase.html on line 139
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/apopendbase.html on line 139