GetSystemWindowStyle
From Spheriki
Load the default window style.
Contents |
[edit]
Usage
WindowStyle GetSystemWindowStyle();
- WindowStyle is returned, which is the system window style.
[edit]
Examples
The following will show some text in a text box.
const MESSAGE = "Hello everybody!"; const X = 20; const Y = 20; const WIDTH = 50; const HEIGHT = 30; var ws = GetSystemWindowStyle(); var font = GetSystemFont(); while (AreKeysLeft()) GetKey(); while (!AreKeysLeft()) { ws.drawWindow(X, Y, WIDTH, HEIGHT); font.drawTextBox(X, Y, WIDTH, HEIGHT, 0, MESSAGE); FlipScreen(); }
[edit]
Notes
- The window style loaded is contained in
sphere/system/system.rws. This file comes with Sphere by default.
[edit]
See also
- Sphere WindowStyle object
- Sphere Font object

