home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1167 < prev    next >
Encoding:
Text File  |  1993-01-06  |  3.4 KB  |  86 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!news.Hamburg.Germany.EU.net!okrumnow
  3. From: okrumnow@mcshh.Hanse.DE (Olaf Krumnow)
  4. Subject: Glass Format / extension for menus
  5. Organization: Point of Presence & MCS Hamburg
  6. Date: Wed, 6 Jan 1993 10:14:06 GMT
  7. Message-ID: <okrumnow.726315246@mcshh.hanse.de>
  8. Sender: news@mcshh.Hanse.DE (News Administrator)
  9. Lines: 75
  10.  
  11. To extend the Glass chunk file format for menus:
  12.  
  13. GLS_MENU
  14. ========
  15. Header field
  16.       Offset      Size  Meaning
  17.         0           8   Menu_Datestamp
  18.                         date&time of last change of this chunk
  19.         8           4   Menu_NumMenus
  20.                         number of menus defined in this chunk
  21.        12           4   Menu_MenuDefnSize
  22.                         size of Menu_MenuDefn fields. At present 28,
  23.                         may change (but unlikely) in future.
  24.        16           4   Menu_ItemDefnSize
  25.                         size of Menu_ItemDefn fields. At present 24,
  26.                         may change (but unlikely) in future.
  27.        20           4   Menu_IndDataOffset
  28.                         Chunk offset of indirected data table for
  29.                         this menu.
  30.        24           8   Menu_Reserved1
  31.                         reserved for future enhancement, set to 0
  32.  
  33. Index (following immediately)
  34.       i+0          40   Menu_Id
  35.                         0-terminated string identifying the menu,
  36.                         eg. "MainMenu"
  37.       i+40          4   Menu_Offset
  38.                         Chunk offset for data for this menu entry.
  39.       i+44          4   Menu_Size
  40.                         Size of data for this menu entry.
  41.       i+48         16   Menu_Reserved2
  42.                         reserved for future enhancement, set to 0
  43.  
  44. Menu data blocks (addressed by chunk offset)
  45.       d+0         (28)  Menu_MenuDefn
  46.                         A menu definition block as passed to
  47.                         SWI Wimp_CreateMenu. Note exceptions stated
  48.                         below.
  49.       d+28        (24)  Menu_ItemDefn 0
  50.                         Data for first menu item, as passed to
  51.                         SWI Wimp_CreateMenu. Note exceptions stated
  52.                         below.
  53.       d+52        (24)  Menu_ItemDefn 1
  54.       ...         ...   ...etc...
  55.  
  56. Indirected data tables (addressed by chunk offset)
  57.       t+0           4   Menu_IndNumEntries
  58.                         number of entries in this table.
  59.       t+4           4   Menu_IndChunkOffset 0
  60.                         Chunk offset for entry 0
  61.       t+8           4   Menu_IndChunkOffset 1
  62.       ...         ...   ...etc...
  63.  
  64. Indirected data blocks (addressed by chunk offset)
  65.       id+0        nn    0-terminated strings of any length,
  66.                         representing indirected data.
  67.  
  68. Notes
  69. ~~~~~
  70.       Exceptions as noted for GLS_WIND. Item naming in chunk
  71.       GLS_NAME the same way as icon naming for windows.
  72.       Submenu links are pointing into indirected data tables,
  73.       therefore pointing to another submenu name, or a window name.
  74.  
  75. Olaf.
  76.  
  77. ------------------------------------------------------------
  78. Olaf Krumnow                 e-mail: okrumnow@mcshh.hanse.de
  79.                              snail : August-Bebel-Str. 102c
  80. Headquarter of the                   W-2050 Hamburg 80
  81. German Archimedes Group              Germany
  82. ------------------------------------------------------------
  83.       
  84.  
  85.  
  86.