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/wid_build/api/create_window.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/wid_build/api/create_window.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/wid_build/api/create_window.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/wid_build/api/create_window.html on line 8
A function exported by PhAB to create a resource editor
window
PhabResWindowHandle_t create_window (
PhArea_t *area,
char *caption,
unsigned int flags,
PtWidget_t **container,
ResPluginActionNotifyF_t *notify,
void *notify_data )
- area
- The area of the window, represented by a PhArea_t.
- caption
- The window's caption string, related to the resource being
currently edited.
- flags
- Additional information about how the window should look. Set
to RESPLUGIN_FIXED_SIZE to make the resulting window
non-resizeable.
- container
- Filled by the create_window() function with a pointer
to a container widget. You should use this widget pointer as the
parent for whatever widgets are needed to render the full resource
editor.
- notify
- A pointer to a callback that notifies the resource editor
of changes to the window. This callback has the following synopsis:
- typedef void ResPluginActionNotifyF_t ( ResPluginAction_t
action, void *notify_data );
- Action is returned as one of:
-
RESPLUGIN_ACTION_DEFAULT — the
resource editor user has requested the default action.
-
RESPLUGIN_ACTION_CLOSE — the resource
editor user has requested to close the plugin's window.
-
RESPLUGIN_ACTION_APPLY — the resource
editor user has requested the apply action.
- notify_data
- A pointer to data that you want to pass as the second argument
to the notify function.
This function is exported from PhAB in the PhABResExportFull_t structure.
This convenience function should be called from within the full
editor's create function to create a typical resource editor window.
The function creates the window with all the necessary callbacks
already attached and will notify the plugin about various actions
using the notify function and notify_data.
- A PhabResWindowHandle_t which has to be used in
the related windowing functions
- success
- NULL
- error
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
destroy(), get_area(), get_res(), PhABResExportFull_t, set_state(), to_front().
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/wid_build/api/create_window.html on line 143
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/wid_build/api/create_window.html on line 143