ProvideX V8.20 > Language Reference > 4. System Variables
564
MSE String
Description
(16,2)
Mouse Y (line) position relative to current window in binary.
(18,2)
Current control object with focus.
(20,2)
Last control object with focus, relative to the current window.
(22,1)
WindX/JavX revision level from $00$ to $FF$ ($FF$ for no thin-client).
(23,2)
CTL value for context-sensitive help.
(25,2)
Last control object to lose focus, relative to the current window.
(27,2)
Maximum X (column) coordinates of the screen.
(29,2)
Maximum Y (line) coordinates of the screen.
(31,1)
Returns current window state. Values correspond to 'SHOW'( )
mnemonic, i.e., dec(mid(mse,31,1))=
-1 for hidden
0 for minimized
1 for normal
2 for maximized.
(32,1)
Returns either W for WindX or J for JavX ($00$ for no thin client).
Examples
IF MID(MSE,22,1)>$00$ AND MID(MSE,22,1)<$FF$ THEN %WDX$="[WDX]"
To get the maximum screen size in lines and columns:
0010 LET X$=MSE
0020 XCHAR=DEC($00$+X$(10,1))
0030 YCHAR=DEC($00$+X$(11,1))
0040 MAX_WIDE=INT(DEC(X$(27,2))/XCHAR)
0050 MAX_HIGH=INT(DEC(X$(29,2))/YCHAR)