Set window size - %sz

In this section:

%sz (Window Size) takes two INTEGER variables (w,d) in the form:


w and h are usually given zero values in the program before the first call to winio@. Zero values are ignored by winio@. (w,h) subsequently hold the current pixel width and height of the window. These values will change when the window is sized. When the window is closed, the latest values can be stored (in a configuration file for example) and used the next time the same window is opened. In this way you can recreate the window size that was last used. A maximised window is configured in the same way because specific values are used to represent this state.



Copyright © 1999-2024 Silverfrost Limited