RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: Window Block

Programmer’s Reference Manuals
» Part 7 – The Desktop
» The Window Manager
» SWI Calls
» Wimp_CreateWindow
» Window Block

Window Block


Offset Contents
+0 Visible area minimum x (inclusive)
+4 Visible area minimum y (inclusive)
+8 Visible area maximum x (exclusive)
+12 Visible area maximum y (exclusive)
+16 Scroll x offset
+20 Scroll y offset
+24 Window Locations
+28 Window Flags
+32 Title foreground and window frame colour1
+33 Title background colour
+34 Work area foreground colour
+35 Work area background colour2
+36 Scroll bar outer colour
+37 Scroll bar Slider colour
+38 Title background colour (input focus)
+39 Extra Window Flags
+40 Work area minimum x
+44 Work area minimum y
+48 Work area maximum x
+52 Work area maximum y
+56 Title Bar Icon Flags
+60 Window Button Types
+64 Sprite area control block pointer (+1 for Wimp sprite area)
+68 Minimum width of window (2 bytes)
+70 Minimum height of window (2 bytes)
+72 Title data (Icon Data)
+84 Number of icons in initial definition (0 or more)
+88 0 or more Icon Block (32 bytes each)

1 Value at +32 sets the Title Foreground and window frame colour, however, if the value is &FF then the window will have no frame, but window furniture will still be present.

2 Value at +35 sets the work area background colour, however, if the value is &FF then the Wimp will not clear the rectangles during a redraw operation.

See also

   .