qdosmsq:pe:struct:awattr

Menu Item Attributes

Loose items in a main window and menu items in an application window must always be in one of three states: available, unavailable and selected. How they appear is determined in a window working definition by information in a block called menu item attributes, as shown here.

Name      Off Size  Description
-------------------------------------------------------------------------
wwa_curw  $00 word  border width
wwa_curc  $02 word  border colour
wwa_attr  $04       attribute records
wwa_unav  $04       unavailable
wwa_aval  $10       available
wwa_selc  $1c       selected
wwa.elen  $28       entry length
-------------------------------------------------------------------------

The three attribute records have the following form.

Name      Off Size  Description
-------------------------------------------------------------------------
wwa_back  $00 word  background colour
wwa_ink   $02 word  text object ink colour
wwa_blob  $04 long  pointer to blob (for pattern)
wwa_patt  $08 long  pointer to pattern (for blob)
wwa.elen  $0c       entry length
-------------------------------------------------------------------------
  • qdosmsq/pe/struct/awattr.txt
  • Last modified: 2011/10/29 09:27
  • by george.gwilt