Several GESCAPE codes allow manipulation of the HTBasic window.
The following GESCAPE CRT codes have been added for manipulation of the program window.
The following GESCAPE CRT codes have been added for manipulation of the program child window.
The following example shows the syntax for several of the GESCAPES. Note that codes that set information have a comma before the array name while codes that get information have a semicolon.
10 INTEGER Get4(1:4),Set4(1:4),Get2(1:2),Set1(1:1)
20 DATA 90,100,500,300 ! Position of upper left corner:
30 ! 90,100), Width = 500, Height = 300
40 READ Set4(*)
50 GESCAPE CRT,30 ! Maximize the window
60 GESCAPE CRT,31 ! Hide the window
70 GESCAPE CRT,32 ! Restore the window
80 GESCAPE CRT,33,Set4(*) ! Set position and size: X,Y,W,H
90 GESCAPE CRT,34;Get4(*) ! Get position and size: X,Y,W,H
100 GESCAPE CRT,35 ! Bring the window to the top
110 GESCAPE CRT,36;Get2(*) ! Get the screen size: W,H
120 GESCAPE CRT,37;Get3(*) ! Get the title bar enable flag
130 PRINT Get(2) ! Print the Screen Size
140 PRINT Get(3) ! Print the title bar enable flag
150 Set1(1)=50 ! Set the DUMP size to 50%
160 GESCAPE CRT,38 ! Hide window Title Bar
170 GESCAPE CRT,38 ! Restore window Title Bar
180 GESCAPE CRT,39,Set1(*) ! Set the DUMP size (default is 100%)
190 GESCAPE CRT,41 ! Minimize the window
200 GESCAPE CRT,32 ! Restore the window
210 END
|