Flags and buttons quick reference (for Dr Wimp 3.80 and higher)

FNwimp_createwindow

flags%:
          bit      meaning if set

          0        window has title bar
          1        window has close icon
          2        window has back icon
          3        window has horizontal scroll bar
          4        window has vertical scroll bar
          5        window has adjust size icon
          6        window has toggle size icon
          7        window can auto-redraw
          8        window is a pane
          9        window is moveable
          10       window can be dragged/moved outside screen
          11       'scroll event' will be generated (with auto-repeat)
          12       'scroll event' will be generated (without auto-repeat)
          13       'hot key events' will be generated
          14       window forced to stay on screen
          15       dragging 'adjust size' icon ignores RH extent of window
          16       dragging 'adjust size' icon ignores lower extent of window
          
          
colourflags% - Best constructed as 7 'digit' hex value e.g. &727131C for
	  	    standard Wimp window colours, in order as below.

          Title foreground colour (7)
          Title background colour (2)
          Work area foreground colour (7)
          Work area background colour (1)
          Scroll bar outer colour (3)
          Scroll bar inner (slider) colour (1)
          Title background colour when highlighted for input focus (12 - &C)

          
titleflags%:
          bit      meaning if set

          0        title has text
          1        title has sprite
          2        text/sprite is horizontally centred
          3        text/sprite is vertically centred
          4        title uses an outline font
          5        text/sprite is right justified
          6        sprite (if any) is displayed half-size
          7        title is indirected (Will also be set automatically if
                                            'title$' exceeds 11 characters)         
button type (button%):
    (essentially the same as for icons but there is no concept of 'selected')
         number    type

          0        ignore ('never')
          1        always (continuous notification while pointer over icon)
          2        click autorepeat
          3        click (once only)
          4        release
          5        double-click
          6        click/drag (as 3, but with drag)
          7        release/drag (as 4, but with drag)
          8        double-click/drag (as 5, but with drag)
          9        menu
          10       double-click/click/drag
          11       radio
          12       reserved
          13       reserved
          14       writable/click/drag
          15       writable

----------------------------------------------------------------------

FNwimp_createicon

flags%:   bit      meaning if set

          0        icon has text
          1        icon has sprite
          2        icon has border
          3        text/sprite is horizontally centred
          4        text/sprite is vertically centred
          5        icon is filled
          6        icon uses an outline font
          7        icon needs task's help to be redrawn
          8        icon is indirected
          9        text/sprite is right justified
          10       <adjust> does not cancel other selected icons in same ESG
          11       sprite (if any) is displayed half-size
          12       icon is displayed as 'selected'
          13       icon is disabled (greyed out) and cannot be selected
          14       icon has been deleted


button type (button%):
         number    type (and action which notifies task)

          0        ignore ('never')
          1        always (continuous notification while pointer over icon)
          2        click autorepeat
          3        click (once only)
          4        release
          5        double-click
          6        click/drag (as 3, but with drag)
          7        release/drag (as 4, but with drag)
          8        double-click/drag (as 5, but with drag)
          9        menu (click notifies,pointer over icon 'selects',
                                                   moving away 'deselects')
          10       double-click/click/drag
          11       radio (click also 'selects' icon)
          12       reserved
          13       reserved
          14       writable/click/drag
          15       writable


EOF130