next up previous contents index
Next: Prompt Line Up: Main Functions 1 Previous: OpenAccess   Contents   Index

Mode

(int) Mode(window, mode)
This function switches Xic between physical and electrical modes, or switches sub-windows between the two viewing modes. The first argument is an integer 0-4, where 0 represents the main window, in which case the application mode is set, and 1-4 represent the sub-windows, in which case the viewing mode of that sub-window is set. The sub-window number is the same number as shown in the window title bar.

The second argument can be a number or a string. If a number and the nearest integer is not zero, the mode is electrical, otherwise physical. If a string that starts with `e' or `E', the mode is electrical, otherwise physical.

The return value is the new mode setting (0 or 1) or -1 if the indicated sub-window is not active.

(int) CurMode(window)
This function returns the current mode (physical or electrical) of the main window or sub-windows. The argument is an integer 0-4 where 0 represents the main window (and the application mode) and 1-4 represent sub-window viewing modes. The return value is 0 for physical mode, 1 for electrical mode, or -1 if the indicated sub-window does not exist. This function is identical to GetWindowMode.


next up previous contents index
Next: Prompt Line Up: Main Functions 1 Previous: OpenAccess   Contents   Index
Stephen R. Whiteley 2024-09-29