Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
38
Task/Window-management/BBC-BASIC/window-management.basic
Normal file
38
Task/Window-management/BBC-BASIC/window-management.basic
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
SWP_NOMOVE = 2
|
||||
SWP_NOZORDER = 4
|
||||
SW_MAXIMIZE = 3
|
||||
SW_MINIMIZE = 6
|
||||
SW_RESTORE = 9
|
||||
SW_HIDE = 0
|
||||
SW_SHOW = 5
|
||||
|
||||
REM Store window handle in a variable:
|
||||
myWindowHandle% = @hwnd%
|
||||
|
||||
PRINT "Hiding the window in two seconds..."
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_HIDE
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_SHOW
|
||||
PRINT "Windows shown again."
|
||||
|
||||
PRINT "Minimizing the window in two seconds..."
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_MINIMIZE
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_RESTORE
|
||||
PRINT "Maximizing the window in two seconds..."
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_MAXIMIZE
|
||||
WAIT 200
|
||||
SYS "ShowWindow", myWindowHandle%, SW_RESTORE
|
||||
PRINT "Now restored to its normal size."
|
||||
|
||||
PRINT "Resizing the window in two seconds..."
|
||||
WAIT 200
|
||||
SYS "SetWindowPos", myWindowHandle%, 0, 0, 0, 400, 200, \
|
||||
\ SWP_NOMOVE OR SWP_NOZORDER
|
||||
|
||||
PRINT "Closing the window in two seconds..."
|
||||
WAIT 200
|
||||
QUIT
|
||||
Loading…
Add table
Add a link
Reference in a new issue