Offset Contents Standard values
0 Visible area minimum x
4 Visible area minimum y
8 Visible area maximum x
12 Visible area maximum y
16 Scroll x offset
20 Scroll y offset
24 Handle to open window behind
28 Window flags
32 Title foreground, and frame colour 7 Black
(&FF is a special value)
33 Title background 2 LightGrey
34 Work area foreground 7 Black
35 Work area background 1 VeryLightGrey
&FF means Wimp won't clear
36 Scrollbar background (outer) colour 3 MidLightGrey
37 Scrollbar foreground (inner) colour 1 VeryLightGrey
38 Title background when input focus 12 Cream
39 Extra flags byte.
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 Workarea 'button' flags
64 Sprite area control block pointer (+1 for Wimp)
68 Minimum width (NB two bytes)
70 Minimum height (NB two bytes)
72 Title data
84 Number of icons in initial definition (0 or more)
88 0 or more icon blocks, 32 bytes each
Title foreground, and frame colour
The default colour for the title is 7 (black).
If the colour given is &FF, then on pre-Wimp 3.80, then it means that the window will have no furniture (ie. no title bar, no scroll bars, no close, etc). If the Wimp is 3.80 or later, then the window will merely have no frame, but furniture will still be able to be present.
Window block extra flags.
Bit /Meaning/
0 use 24-bit colour in title bar validation (4.00+)
1 window should use extended scroll requests (Select 2)
2 window should never be given a 3D border (4.00+)
3 window should always be given a 3D border (4.00+)
4 Wimp_GetPointerInfo should return shaded icons as well (5.00+)
All other bits should be zero.
Setting both bits 2 and 3 has the same effect as setting neither bit.
24-bit window colouring (4.00+)
Set bit 0 of byte 39 in the window description block and the validation string of the title bar will be checked for the 'C' option where C is:
C[title foreground]/
[title background]/
[work area foreground]/
[work area background]/
[scroll bar outer]/
[scroll bar inner]/
[input focus title background]
Each colour is in the order BBGGRR. If unspecified, conventional window colour bytes are used instead.
Support for window flag bit 10 (use GCOL colour numbers) is withdrawn when 24-bit colour is used.
|
|
|