(form "00830" (size 60 21) 
  (heading "TITLE PROPERTIES")

  (field "title_id" (position 15 3) (display_length 15) (input disallowed)
    (max_length 32) (null disallowed)
    )

  (field "title_desc" (position 15 4) (display_length 15) (input allowed)
    (max_length 100) (null allowed)
    )

  (field "border_id" (position 50 3) (display_length 6) (input allowed)
    (max_length 32) (null disallowed) (auto_next off) (translate upper)
    )

  (field "draw_area_id" (position 50 4) (display_length 6) (input allowed)
    (max_length 32) (null disallowed) (auto_next off) (translate upper)
    )

  (field "corner" (position 15 7) (display_length 10) (input allowed)
    (max_length 12) (null disallowed) (translate lower) (default "lr")
    (value_in "ll" "ul" "lr" "ur"
      [default "lower left" "upper left" "lower right" "upper right"])
    )

  (field "xoffset" (position 15 8) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (decimals 2) (help (field "corner")))

  (field "yoffset" (position 15 9) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (decimals 2) (help (field "corner")))

  (field "xsize" (position 50 7) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (low_bound 1) (decimals 2)
    )

  (field "ysize" (position 50 8) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (low_bound 1) (decimals 2)
    )

  (field "priority" (position 50 9) (display_length 5) (input allowed)
    (max_length 3) (null disallowed) (format integer_4) (default "125")
    (low_bound 0) (high_bound 125)
    )

  (field "orientation" (position 50 10) (display_length 5) (input allowed)
    (max_length 3) (null disallowed) (format integer_4) (default "0")
    (value_in "0" "90")
    )

  (field "pen" (position 50 11) (display_length 5) (input allowed)
    (max_length 3) (null disallowed) (format integer_4) (default "1")
    (low_bound 1) (high_bound 999)
    )

  (field "font" (position 15  3) (display_length 4) (input allowed)
    (null allowed) (max_length 70))
  (field "bold_font" (position 15  3) (display_length 2) (input allowed))
  (field "italic_font" (position 15 3) (display_length 2) (input allowed))
  (field "underline_font" (position 15 3) (display_length 2) (input allowed))

  (scroll_block "prompt_lines" (position 2 14) (size 53 5)
    (extra 0 1)
    (scroll_size 60 50)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 150)))
    (top
      (label (position 1 0) 
        (text "Prompt"))

      (label (position 18 0) 
        (text "X position"))

      (label (position 26 0) 
        (text "Y position"))

      (label (position 34 0) 
        (text "Text height"))

      (label (position 42 0) 
        (text "Length"))

      (label (position 47 0) 
        (text "Pen"))

      (label (position 52 0)
        (text "Justification"))
    )        
    (main
      (field "text_prompt" (position 1 0) (display_length 15) (input allowed)
        (max_length 128) (null allowed) 
        )

      (field "text_xpos" (position 18 0) (display_length 5) (input allowed)
        (max_length 10) (null disallowed) (format real_8) (default "0")
        (decimals 2)
        )

      (field "text_ypos" (position 26 0) (display_length 5) (input allowed)
        (max_length 10) (null disallowed) (format real_8) (default "0")
        (decimals 2)
        )

      (field "text_height" (position 34 0) (display_length 5) (input allowed)
        (max_length 10) (null disallowed) (format real_8) (default "0.2")
        (low_bound 0.05) (decimals 2)
        )

      (field "text_max_length" (position 42 0) (display_length 2) 
        (input allowed)
        (max_length 5) (null disallowed) (format real_8) (default "1.0")
        (low_bound 1) (high_bound 32)
        )

      (field "text_pen" (position 47 0) (display_length 3) (input allowed)
        (max_length 3) (null disallowed) (format integer_4) (default "1")
        (low_bound 1) (high_bound 999)
        )

      (field "justify" (position 52 0) (display_length 5) (input allowed)
        (max_length 10) (null disallowed) 
        (auto_next off)
        (default "Centre")
        (value_in "Left" "Right" "Centre")
        )

    )
  )

  (default_buttons)
)
