(form "00880" (size 60 15) 
  (heading "LEGEND PROPERTIES")

  (field "xpos" (position 11 3) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (decimals 2)
    )

  (field "ypos" (position 11 4) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (decimals 2)
    )

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

  (field "ysize" (position 11 6) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0")
    (decimals 2)
    )

  (field "priority" (position 11 7) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format integer_4) (default "1")
    (low_bound 0) (high_bound 125)
    )

  (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))
  
  (field "height" (position 15 4) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0.2")
    (low_bound 0.05) (decimals 2)
    )

  (scroll_block "elements" (position 5 8) (size 48 5)
    (extra 0 1)
    (scroll_size 48 100)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 100)))
    (top
      (label (position 1 0) (text "Pattern"))

      (label (position 13 0) (text "Label"))

      (label (position 25 0) (text "Scale"))

      (label (position 33 0) (text "Angle"))

      (label (position 41 0) (text "Pen"))
    )  
    (main
      (field "entity" (position 1 0) (display_length 10) (input allowed)
        (max_length "PLT_OBJECT_NAME_LENGTH") (null disallowed)
        )

      (field "label" (position 13 0) (display_length 10) (input allowed)
        (max_length 32) (null allowed)
        )
        
      (field "type" (position 13 0) (display_length 10) (input allowed)
        (max_length 32) (null allowed) (default "rectangle")
        )
    )
  )

  (default_buttons)
)
