panelZoomIn()
Zooms in the rootpanel in a module around the center with the specified zoom factor.
Synopsis
int panelZoomIn([string moduleName [, float factor]]);
Parameters
Parameter | Description |
---|---|
moduleName | Name of the module that opens the panel. Optional parameter |
factor | Zoom factor. The default factor is 1.5. |
Return value
If the operation has been successful, the function returns 1 and in the event of an error, 0.
Error
Wrong or invalid module name
Description
The panel will be zoomed in with the specified factor. By default, the panel will be zoomed in around the center with the factor 1.5.
Example
The following example zooms in the opened panel with the factor 2.
main()
{
panelZoomIn("Vision_1", 2);
}
If you do not want to use the initial zoom factor when opening a panel and use the panelZoomIn() function, note that the function has to be at the beginning of the initScript.
Assignment
Management of managers...
Availability
UI
See also
Zooming/panning, Reference tables, panelZoomOut(), moduleOriginalSize()