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/apmodulelocation.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/apmodulelocation.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/apmodulelocation.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/apmodulelocation.html on line 8
Specify the module location for a PhAB internal link
#include <Ap.h>
void ApModuleLocation( ApEventLink_t *link_callback,
int loc_type,
int x_offset,
int y_offset );
- link_callback
- The ABM_ link callback for the module whose location you want
to specify.
- loc_type
- Where to place the module; one of the following:
- AB_LOC_BELOW_WGT
- AB_LOC_ABOVE_WGT
- AB_LOC_RIGHT_WGT
- AB_LOC_LEFT_WGT
- AB_LOC_TOP_LEFT
- AB_LOC_TOP_RIGHT
- AB_LOC_BOT_LEFT
- AB_LOC_BOT_RIGHT
- AB_LOC_CENTER
- AB_LOC_REL_CURSOR
- AB_LOC_REL_MODULE
- AB_LOC_DEFAULT — let the window manager determine
the position. The offsets are ignored.
- AB_LOC_ABSOLUTE — x_offset and
y_offset are the absolute coordinates for the module.
- x_offset, y_offset
- The horizontal and vertical offsets for the module, relative to the
given location.
Ap
ApModuleLocation() is used to specify the module
location for a PhAB internal link.
The x_offset and y_offset pixel values are
applied to the location determined from the loc_type. For
example, if you want a dialog to appear 100 pixels from the top right
edge of the screen, set the x_offset to -100 and the
loc_type to AB_LOC_TOP_RIGHT.
When you create an internal link in PhAB, you can set the location.
This function lets you change that value if required. The new location
will remain in effect until changed again.
/* place the module in the center of the screen */
ApModuleLocation( ABM_mydialog, AB_LOC_CENTER, 0, 0 );
ApCreateModule( ABM_mydialog, NULL, NULL );
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ApModuleFunction()
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/apmodulelocation.html on line 176
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/apmodulelocation.html on line 176