Documentation: Icon Flags
Programmer’s Reference Manuals
» Part 7 – The Desktop
» The Window Manager
» SWI Calls
» Wimp_CreateIcon
» Wimp_CreateIcon (window syntax)
» Icon Block
» Icon Flags
Icon Flags
| Bit | Meaning when set |
|---|---|
| 0 | Icon contains text |
| 1 | Icon is a sprite |
| 2 | Icon has a border |
| 3 | Contents are centred horizontally |
| 4 | Contents are centred vertically within the box |
| 5 | Icon has a filled background |
| 6 | Text is an anti-aliased font1 |
| 7 | Wimp cannot redraw icon by itself |
| 8 | Icon data is indirected |
| 9 | Text is right-justified |
| 10 | If selected with Adjust button, don’t cancel others in the same ESG |
| 11 | Display sprite at half size |
| 12-15 | Icon Button Type |
| 16-19 | Exclusive Selection Group |
| 20 | Text is numeric and must not be reversed (useful in territories with right-to-left alphabet) |
| 21 | Icon is selected by the user, and is inverted |
| 22 | Icon is disabled (shaded) |
| 23 | Icon is deleted |
| 24-27 | Foreground colour of icon1 |
| 28-31 | Background colour of icon1, or |
| 24-31 | Font handle1 |
1 Bit 6 determines the the purpose of Bits 24 – 31. If set, bits 24-31 is the font handle, otherwise, it contains the (non 24-bit) icon colour information.