(form "01101" (size 72 19)
  (help "01101_TIP_0")
  (heading "CUSTOM MENU DEFINITION")
  (label (position  2 3) (text "Menu Name"))
  (field "menu_name" (position 15 3) (display_length 8) (input allowed)
    (translate lower) (null disallowed) (max_length 64)
    (file (extension trim "*.def"))
    (help "01101_TIP_1"))
  (label (position  27 3) (text "Menu Title"))
  (field "menu_title" (position 38 3) (display_length 33) (input allowed)
    (null disallowed) (max_length 70)
    (help "01101_TIP_2"))
  (label (position  2 4) (text "Menu Type"))
  (field "menu_type" (position 15 4) (display_length 8) (input allowed)
    (translate lower) (null disallowed) (max_length 8)
    (default "normal") (value_in "normal" "graphics")
    (help "01101_TIP_3"))
  (label (position  27 4) (text "Menu Columns"))
  (field "columns" (position 41 4) (display_length 2) (input allowed)
    (translate lower) (null allowed) (max_length 2)
    (default "1") (format integer_4)
    (help "01101_TIP_4"))
  (label (position  47 4) (text "Rows per Column"))
  (field "rows" (position 60 4) (display_length 2) (input allowed)
    (translate lower) (null disallowed) (max_length 2)
    (default "1") (low_bound 1) (format integer_4)
    (help "01101_TIP_5"))
  (menu (position  23 6) (size 23  1)
    (grid  1  1)
    (item (text "Create Menu Grid"))
  )
  (scroll_block "buttons" (position 1 9) (size 68  7)
     (extra  0  1)
     (scroll_size 68 16)
     (repeat (grow 0 1) (instances 0 (min 0) (max 256)))
    (top
      (label (position   1 0) (text "Col"))
      (label (position   4 0) (text "Row"))
      (label (position   8 0) (text "Button Label"))
      (label (position  25 0) (text "Action"))
      (label (position  35 0) (text "Menu/Function/Macro|Arg1|Arg2|...|ArgN/"))
    )
    (main
      (field "col" (position  1  0) (display_length 1) (input disallowed))
      (field "row" (position  4  0) (display_length 1) (input disallowed))
      (field "label" (position  7  0) (display_length 17) (input allowed)
        (null allowed) (max_length 40)
        (help "01101_TIP_6"))
      (field "action" (position  25  0) (display_length 8) (input allowed)
        (translate lower) (null disallowed) (max_length 8)
        (value_in "none" "menu" "function" "macro" "previous")
        (default "none")
        (help "01101_TIP_7"))
      (field "name" (position  35 0) (display_length 32) (input allowed)
        (translate lower) (null allowed) (max_length 250)
        (help "01101_TIP_8"))
    )
  )
  (label (position  4 16) (text "Menu Width"))
  (field "xsize" (position 17 16) (display_length 2) (input allowed)
    (translate lower) (null allowed) (max_length 2)
    (format integer_4)
    (dependency (value "menu_type") == "normal")
    (help "01101_TIP_9"))
  (label (position  28 16) (text "Menu Height"))
  (field "ysize" (position 42 16) (display_length 2) (input allowed)
    (translate lower) (null allowed) (max_length 2)
    (low_bound 1) (high_bound 25) (format integer_4)
    (help "01101_TIP_10"))
  (default_buttons)
)
