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

Mode

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 is 0 for physical mode, nonzero for electrical mode. 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: Libraries   Contents   Index
Stephen R. Whiteley 2012-04-01