(form "01103" (size 70 19)
  (heading "GRAPHICAL DRILLHOLE LOG")

  (label (position 2 3) (text "Paper Size") )
  (field "paper" (position 12 3) (display_length 10) (max_length 32)
    (input allowed) (null disallowed)
    )

  (label (position 2 4) (text "Orientation") )
  (field "orient" (position 12 4) (display_length 10) (max_length 15)
    (input allowed)
    (value_in "Landscape" "Portrait"
     ) 
    (default "Portrait")
    )

  (label (position 2 5) (text "Plot Type") )
  (field "type" (position 12 5) (display_length 10) (max_length 15)
    (input allowed)
    (value_in "Single Hole" "Multi Hole"
     ) 
    (default "Single Hole")
    )

  (label (position 2 6) (text "Scale") )
  (field "scale" (position 12 6) (display_length 10) (max_length 32)
    (input allowed) (null disallowed)
    (default "100")
    )
 
  (label (position 2 7) (text "Label Interval") )
  (field "interval" (position 12 7) (display_length 10) (max_length 32)
    (input allowed) (null disallowed)
    (default "5")
    )

  (label (position 30 3) (text "Left Margin") )
  (field "left_margin" (position 40 3) (display_length 10) (max_length 32)
    (input allowed)
    (default "0")
    )

  (label (position 30 4) (text "Depth from") )
  (field "depth_from" (position 40 4) (display_length 10) (max_length 32)
    (input allowed)
    )

  (label (position 30 5) (text "Depth to") )
  (field "depth_to" (position 40 5) (display_length 10) (max_length 32)
    (input allowed)
    )

  (label (position 30 6) (text "Lookup File") )
  (field "lookup" (position 40 6) (display_length 20) (max_length 256)
    (input allowed)
    (file(extension "*.ssi"))
    (default "SSI_PLOTTING:lookup.ssi")
  )

  (label (position 30 7) (text "Pattern File") )
  (field "pattern" (position 40 7) (display_length 20) (max_length 256)
    (input allowed) (null disallowed)
    (file(extension "*.ssi"))
    (default "SSI_PLOTTING:patterns.ssi")
    )

 (scroll_block "columns"
        (position 14 9)
        (size 52 6)
        (extra 0 1)
        (scroll_size 60 5)
        (repeat interactive
            (grow 2 0)
            (instances 1
                (min 1)
                (max 50)
            )
        )
        (Top
          (label (position 1 0) (text "Column Heading")
          )
          (label (position 12 0) (text "Column Type") )
          (label (position 20 0) (text "Table") )
          (label (position 28 0) (text "Col. Width") )
          (label (position 35 0) (text "Interval") )
          (label (position 42 0) (text "Grid") )
          (label (position 46 0) (text "opt label 1")
          )
          (label (position 54 0)(text "opt label 2")
          )
          (label (position 62 0) (text "opt label 3")
          )
          (label (position 68 0) (text "Fields")
          )

        )
        (main
            (field "col_name"
              (position 1 0)
              (display_length 9)
              (input allowed)
              (max_length 30)
              )
            (field "col_type"(position 12 0)(display_length 10)(max_length 32)
              (input allowed)(null disallowed)
              (auto_next off)
              (value_in "Lithology" "Bar Graph" "Line Graph" "Depths" "Description"
                "Bar / Line"
                )
              (default "Lithology")
              )
            (field "table" (position 20 0) (display_length 10) (max_length "DB_NAME_LENGTH")
              (auto_next off)
              (input allowed) (null disallowed)
              )

            (field "width" (position 28 0) (display_length 10) (max_length 32)
              (input allowed)(null disallowed)
              (default "2")
              )

            (field "col_int"(position 35 0)(display_length 10)(max_length 32)
              (input allowed)(null disallowed)
              (default "0")
              )

            (field "labels"(position 42 0)(display_length 3)(max_length 3)
              (input allowed)(null disallowed)
              (auto_next off)
              (value_in "On" "Off"
                )
              (default "On")
              )

            (field "opt1_field" (position 46 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt2_field"(position 54 0)(display_length 10)
              (max_length 32)(input allowed)
              )

            (field "opt3_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt4_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt5_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt6_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt7_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            (field "opt8_field" (position 62 0) (display_length 10) 
              (max_length 32)(input allowed)
              )

            /* note that max length is a large number for the field fname
               because it may receive a | separated list of field names 
               which may exceed the maximum length for an individual field name
            */
            (field "fname"
              (position 68 0)
              (display_length 9)
              (input allowed)
              (auto_next off)
              (null allowed)
              (max_length 1000)
              )
        )
 )
 

 (default_buttons)
)
