(form "01111" (size 45 15)
  (heading "PALETTE EDITOR")

  (label (position 2 3) (text "Palette Name") )
  (field "palette" (position 12 3) (display_length 10) (max_length 256)
    (input allowed)(null disallowed)
    (default "crayola")
    )

  (scroll_block "rgb"
    (position 2 6)
    (size 40 7)
    (extra 0 1)
    (scroll_size 40 20)
    (repeat interactive
      (grow 0 1)
      (instances 1
        (min 0)
        (max 5000)
       )
     )
    (Top
      (label(position 1 0)(text "Name"))
      (label(position 17 0)(text "Red"))
      (label(position 24 0)(text "Green"))
      (label(position 31 0)(text "Blue"))
     )
    (main
      (field "colour"
        (position 1 0)
        (display_length 15)
        (input allowed)
        (max_length 30)
        (translate lower)
        )
      (field "r"
        (position 17 0)
        (display_length 3)
        (format integer_4)
        (input allowed)
        (max_length 3)
        )
      (field "g"
        (position 24 0)
        (display_length 3)
        (format integer_4)
        (input allowed)
        (max_length 3)
        )
      (field "b"
        (position 31 0)
        (display_length 3)
        (format integer_4)
        (input allowed)
        (max_length 3)
        )
     )
   )
  (default_buttons)
)
