(form "01107" (size 60 18)
  (heading "LOOKUP EDITOR")

  (label (position 2 3) (text "Lookup File") )
  (field "l_file" (position 10 3) (display_length 20) (max_length 256)
    (input allowed) (null disallowed)
    (file(extension "*.ssi"))
    (default "SSI_PLOTTING:lookup.ssi")
    )
  (label (position 2 4) (text "Output File") )
  (field "out_file" (position 10 4) (display_length 20) (max_length 256)
    (input allowed) (null disallowed)
    (file(extension "*.ssi"))
    (default "SSI_PLOTTING:lookup.ssi")
    )

  (label (position 2 5) (text "Pattern File") )
  (field "patt_file" (position 10 5) (display_length 20) (max_length 256)
    (input allowed) (null disallowed)
    (file(extension "*.ssi"))
    (default "SSI_PLOTTING:patterns.ssi")
    )

  (scroll_block "lookup"
    (position 2 8)
    (size 50 7)
    (extra 0 1)
    (scroll_size 50 20)
    (repeat interactive
      (grow 0 1)
      (instances 1
        (min 1)
        (max 350)
       )
     )
    (Top
      (label(position 1 0)(text "Code")
       )
      (label(position 17 0)(text "Pattern Name")
       )
      (label(position 34 0)(text "Pen")
       )
      (label(position 42 0)(text "Scale")
       )
     )
    (main
      (field "code"
        (position 1 0)
        (display_length 15)
        (input allowed)
        (max_length 30)
        )
      (field "pattern"
        (position 17 0)
        (display_length 15)
        (input allowed)
        (max_length 30)
        )
      (field "pen"
        (position 34 0)
        (display_length 5)
        (null disallowed)
        (low_bound 1) (high_bound 99999)
        (format integer_4)
        (input allowed)
        (max_length 5)
        )
      (field "scale"
        (position 42 0)
        (display_length 5)
        (input allowed)
        (format real_8)
        (low_bound 0.001)
        (null allowed)
        (max_length 10)
        )
     )
   )

  (label (position 34 3) (text "Paper Size") )
  (field "paper" (position 42 3) (display_length 10) (max_length 32)
    (input allowed) (null disallowed)
    )
  (label (position 34 4) (text "Orientation") )
  (field "orient" (position 42 4) (display_length 10) (max_length 15)
    (input allowed)           
    (value_in "Landscape" "Portrait"
     ) 
    (default "Portrait")
    )
  (default_buttons)
)
