(form "01106" (size 65 18)
  (heading "DRILLHOLE LOG TITLE")

  (label(position 2 3)(text "Title Block") )
  (field "tb"
    (position 12 3)
    (display_length 6)
    (input allowed)
    (null disallowed)
    (max_length 32)
    (default "NOTB")
    )
  
  (scroll_block "titles"
      (position 22 4)
      (size 38 5)
      (extra 0 1)
      (scroll_size 38 20)
      (repeat interactive
          (grow 0 1)
          (instances 1
              (min 0)
              (max 150)
          )
      )
      (top
        (label
            (position 14 0)
            (text "Title")
        )
      )
      (main
        (field "prompt"
            (position 1 0)
            (display_length 10)
            (background)
            (max_length 20)
            (input disallowed)
            (null allowed)
        )
        (field "title"
            (position 14 0)
            (display_length 20)
            (max_length 100)
            (input allowed)
            (null allowed)
            )
      )
  )

 (label (position 2 6) (text "Include ?") )
  (field "header" (position 12 6) (display_length 4) (max_length 3)
    (input allowed) (null disallowed)
    (auto_next off)
    (value_in "Yes" "No") 
    (default "Yes")
    )
  
  (field "colFont" (position 15  7) (display_length 4) (input allowed)
    (null allowed) (max_length 70))
  (field "colBoldFont" (position 15  8) (display_length 2) (input allowed))
  (field "colItalicFont" (position 15  9) (display_length 2) (input allowed))
  (field "colUnderlineFont" (position 15 10) (display_length 2) (input allowed))
  (field "colTextSize" (position 12 7) (display_length 4) (max_length 10)
    (input allowed) (null disallowed)
    (dependency(value "header") == "Yes")
    (default "0.4")
    )

  (label (position 2 10) (text "Include ?") )
  (field "hole_id" (position 12 10) (display_length 4) (max_length 3)
    (input allowed) (null disallowed)
    (auto_next off)
    (value_in "Yes" "No") 
    (default "Yes")
    )
 (label (position 2 12) (text "No. Decimals") )
  (field "decimals" (position 12 12) (display_length 4) (max_length 10)
    (input allowed) (null disallowed)
    (dependency(value "hole_id") == "Yes")
    (default "2")
    )

  (label (position 2 13) (text "Coordinates") )
  (field "coords" (position 12 13) (display_length 4) (max_length 3)
    (input allowed) (null disallowed)
    (dependency(value "hole_id") == "Yes")
    (value_in "Yes" "No") 
    (default "Yes")
    )

  (label (position 2 14) (text "Dip") )
  (field "dip" (position 12 14) (display_length 4) (max_length 3)
    (input allowed) (null disallowed)
    (dependency(value "hole_id") == "Yes")
    (value_in "Yes" "No") 
    (default "Yes")
    )

  (label (position 2 15) (text "Azimuth") )
  (field "az" (position 12 15) (display_length 4) (max_length 3)
    (input allowed) (null disallowed)
    (dependency(value "hole_id") == "Yes")
    (value_in "Yes" "No") 
    (default "Yes")
    )

  (field "holeFont" (position 15  7) (display_length 4) (input allowed)
    (null allowed) (max_length 70))
  (field "holeBoldFont" (position 15  8) (display_length 2) (input allowed))
  (field "holeItalicFont" (position 15  9) (display_length 2) (input allowed))
  (field "holeUnderlineFont" (position 15 10) (display_length 2) (input allowed))
  (field "holeTextSize" (position 12 11) (display_length 4) (max_length 10)
    (input allowed) (null disallowed)
    (dependency(value "hole_id") == "Yes")
    (default "0.4")
    )

  (scroll_block "extra"
      (position 22 11)
      (size 38 5)
      (extra 0 1)
      (scroll_size 38 20)
      (repeat interactive
          (grow 0 1)
          (instances 1
              (min 0)
              (max 20)
          )
      )
      (top
        (label
            (position 2 0)
            (text "Information Label")
        )
        (label
            (position 24 0)
            (text "Field")
        )
      )
      (main
        (field "extra_label"
            (position 1 0)
            (display_length 20)
            (max_length 50)
            (input allowed)
            (null allowed)
            )
        (field "extra_field"
            (position 24 0)
            (display_length 10)
            (max_length 20)
            (input allowed)
            (null allowed)
            )
      )
  )

  (default_buttons)
)
