(form "00818" (size 34 21)
  (heading "NEW DRAW AREA PROPERTIES"
  )

  (label (position 2 3) (text "Existing viewport"))
  (field "view_name" (position 15 3) (display_length 15) (input allowed)
    (max_length 32) (null allowed)
    )

  (label (position 2 4) (text "Existing border"))
  (field "border_id" (position 15 4) (display_length 15) (input allowed)
    (max_length 32) (null disallowed) (translate upper) (auto_next off) 
    )

  (label (position 2 5) (text "Left"))
  (field "border_left_offset" (position 8 5) (display_length 4) 
    (max_length 8) (null disallowed) (format real_8)
    (low_bound 0) (decimals 2) (input disallowed)
    )

  (label (position 2 6) (text "Right"))
  (field "border_right_offset" (position 8 6) (display_length 4) 
    (max_length 8) (null disallowed) (format real_8)
    (low_bound 0) (decimals 2) (input disallowed)
    )

  (label (position 18 5) (text "PLT_BOTTOM1"))
  (field "border_bottom_offset" (position 24 5) (display_length 4) 
    (max_length 8) (null disallowed) (format real_8)
    (low_bound 0) (decimals 2) (input disallowed)
    )

  (label (position 18 6) (text "Top"))
  (field "border_top_offset" (position 24 6) (display_length 4)
    (max_length 8) (null disallowed) (format real_8)
    (low_bound 0) (decimals 2) (input disallowed)
    )

  (label (position 2 8) (text "Draw Area ID"))
  (field "draw_area_id" (position 15 8) (display_length 15) (input allowed)
    (max_length 32) (null disallowed) (translate upper)
    )

  (label (position 2 9) (text "Description"))
  (field "draw_area_desc" (position 15 9) (display_length 15) (input allowed)
    (max_length 100) (null allowed)
    )

  (label (position 2 10) (text "Preferred sheet"))
  (field "draw_area_sheet" (position 15 10) (display_length 15) (input allowed)
    (max_length 32) (null disallowed) (auto_next off) (translate upper)
    )

  (label (position 2 12) (text "Viewport dimensions from sheet boundaries (cm)")) 

  (label (position 2 13) (text "Left"))
  (field "left_offset" (position 8 13) (display_length 4) (input allowed)
    (max_length 8) (null disallowed) (format real_8) (default "0.5")
    (low_bound 0) (decimals 2)
    )

  (label (position 2 14) (text "Right"))
  (field "right_offset" (position 8 14) (display_length 4) (input allowed)
    (max_length 8) (null disallowed) (format real_8) (default "0.5")
    (low_bound 0) (decimals 2)
    )

  (label (position 18 13) (text "Bottom"))
  (field "bottom_offset" (position 24 13) (display_length 4) (input allowed)
    (max_length 8) (null disallowed) (format real_8) (default "0.5")
    (low_bound 0) (decimals 2)
    )

  (label (position 18 14) (text "Top"))
  (field "top_offset" (position 24 14) (display_length 4) (input allowed)
    (max_length 8) (null disallowed) (format real_8) (default "0.5")
    (low_bound 0) (decimals 2)
    )

  (label (position 2 16) (text "Draw lines around the draw area"))
  (field "draw_lines" (position 24 16) (display_length 1) (input allowed)
    (max_length 1) (null disallowed) (default "Y") (translate upper)
    (value_in "Y" "N")
    )
  
  (label (position 2 17) (text "Pen number"))
  (field "pen" (position 12 17) (display_length 3) (input allowed)
    (max_length 3) (null disallowed) (default "1") (format integer_4)
    (low_bound 1) (high_bound 999)
    (dependency (value "draw_lines") == "Y")
    )
  
  (label (position 2 18) (text "Line priority"))
  (field "priority" (position 12 18) (display_length 3) (input allowed)
    (max_length 3) (null disallowed) (default "125") (format integer_4)
    (low_bound 0) (high_bound 125)
    (dependency (value "draw_lines") == "Y")
    )

  (default_buttons)
)
