User Tools

Site Tools


switching_20back_20from_20full-screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
switching_20back_20from_20full-screen [2018/03/31 13:19] – external edit 127.0.0.1switching_20back_20from_20full-screen [2024/01/05 00:21] (current) – external edit 127.0.0.1
Line 1: Line 1:
 =====Switching back from full-screen===== =====Switching back from full-screen=====
  
-//by Richard Russell, October 2013//\\ \\  The main Help documentation tells you how to [[http://bbcbasic.co.uk/bbcwin/manual/bbcwine.html#fullscreen|switch to full-screen mode]] but it doesn't tell you how to switch back to a regular window if you need to. To do that you can use code similar to the following:\\ +//by Richard Russell, October 2013//\\ \\  The main Help documentation tells you how to [[http://bbcbasic.co.uk/bbcwin/manual/bbcwine.html#fullscreen|switch to full-screen mode]] but it doesn't tell you how to switch back to a regular window if you need to. To do that you can use code similar to the following: 
 + 
 +<code bb4w>
         GWL_STYLE = -16         GWL_STYLE = -16
         HWND_NOTOPMOST = -2         HWND_NOTOPMOST = -2
Line 8: Line 10:
         SYS "SetWindowPos", @hwnd%, HWND_NOTOPMOST, 100, 100, 800, 600, SWP_FRAMECHANGED         SYS "SetWindowPos", @hwnd%, HWND_NOTOPMOST, 100, 100, 800, 600, SWP_FRAMECHANGED
         VDU 26         VDU 26
 +</code>
 +
 The window position (100, 100) and size (800, 600) values can, of course, be different from those shown, as preferred. The window position (100, 100) and size (800, 600) values can, of course, be different from those shown, as preferred.
switching_20back_20from_20full-screen.1522502385.txt.gz · Last modified: 2024/01/05 00:16 (external edit)