GetSystemWindowStyle

From Spheriki

Jump to: navigation, search

Load the default window style.


Contents

Usage

WindowStyle GetSystemWindowStyle();
  • WindowStyle is returned, which is the system window style.


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();
}


Notes

  • The window style loaded is contained in sphere/system/system.rws. This file comes with Sphere by default.


See also

Personal tools