Package ilcd
Class Control
Public Method selectViewport
static void selectViewport(int viewport)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Parameter |
Range |
Description |
viewport |
0 ... 8 |
index of the viewport |
Selects a specified viewport via its index viewport.
Note
- A viewport of 0 represents the main viewport (the entire screen).
- Any other custom viewport can only be selected if it was previously defined with the Control.defineViewport(int, int, int, int) method.
- After selecting a viewport, the cursor position and all attributes (see class Attribute) are restored to the state when this viewport was lastly active.
- If viewport is other than 0 (main viewport for the active draw screen), the screen the viewport was defined on is activated as the draw screen.
Control.selectViewport(1);
This example selects the viewport defined with index 1.
See also:
Copyright © demmel products gmbh. All rights reserved.