h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » [[Wimp_CreateIcon]] h6(((. » [[Wimp_CreateIcon (window syntax)|Wimp_CreateIcon (window syntax)]] h6((((. » [[Icon Block|Icon Block]] h6(((((. » Icon Flags h2. Icon Flags |_<{width:5em}. 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 font[1] | |<^. 7 |Wimp cannot redraw icon by itself[2] | |<^. 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 Types|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 icon[1] | |<^. 28-31 |Background colour of icon[1], or | |<^. 24-31 |Font handle[1] | fn1. 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. fn2. Bit 7 is useful when an icon's purpose is to display a sprite. By setting this bit, the OS will clear the contents of the icon when the icon is refreshed. Very useful, when the sprite has changed, as the remains of the previous sprite will be removed on screen, before the new sprite is displayed. h4. See also * [[Wimp_CreateWindow|Wimp_CreateWindow]] * [[Wimp_CreateIcon|Wimp_CreateIcon]]