printRootPanel()
Prints a particular root panel.
Synopsis
int printRootPanel(string moduleName, string spec, int
options);
Parameters
Parameter | Description |
---|---|
moduleName |
Name of the module whose root panel is to be printed |
spec |
Default = "" and means print with child panels (is printed like a screenshot), "panelOnly" = prints the panel without child panels (without screenshot of the child panels). CAUTION When using Windows, child panels cannot be printed due to technical restrictions of the operating system. |
options |
With the options parameter the available printing options can be defined. The following constants (values) are available:
CAUTION When using Windows, child panels cannot be printed due to technical restrictions of the operating system. |
Return value
In the event of errors, the function returns -1, otherwise, 0.
Description
Prints the specified root panel in the module moduleName.
Prints the root panel of the actual module without a printing dialog.
main()
{
printRootPanel(myModuleName(),"",PPO_NO_DIALOGS);
}
This function can be used with silentMode printing. To do this, the silentMode UI
must open a "main" panel containing embedded modules. Each of these modules contains
one of the root panels to be printed. After these panels are loaded, the "main"
panel calls this function (as printRootPanel(allModules,
"panelOnly")
and closes itself with PanelOff().
Assignment
Administration of managers, modules and panelsAvailability
UI