(form "20111" (size 76 21)
  (heading "Enter constraints")
  
  (label 
    (position 16 2) 
    (foreground (user_option "form_text_highlight"))
    (text "EXAMPLES:-  press a button for an example of a constraint")
  )
  
  (menu (position 18 3) (size 13 1)
    (item (text "DTM")
	(function "20112")
    )
  )
  (menu (position 31 3) (size 13 1)
    (item (text "3DM")
	(function "20113")
    )
  )
  (menu (position 44 3) (size 13 1)
    (item (text "STRING")
	(function "20114")
    )
  )
  (menu (position 18 4) (size 13 1)
    (item (text "PLANE")
	(function "20116")
    )
  )
  (menu (position 31 4) (size 13 1)
    (item (text "BLOCK")
	(function "20117")
    )
  )
  (menu (position 44 4) (size 13 1)
    (item (text "CONSTRAINT")
	(function "20118")
    )
  )
  
  (menu (position 31 5) (size 13 1)
    (item (text "Combine")
	(function "20119")
    )
  )
  (label 
    (position 2 7) 
    (foreground (user_option "form_text_highlight"))
    (text "REFERENCES - parenthesised items are optional")
  )
  
  (scroll_block "prompts" (position 2 8) (size 71 3) 
    (scroll_size 71 11)
    (main
      (label (position 3 0) (text "(NOT)"))
      (label (position 11 0) (text "ABOVE"))
      (label (position 21 0) (foreground (user_option "form_text_highlight")) 
                             (text "DTM"))
      (label (position 37 0) (text "loc"))
      (label (position 42 0) (text "id"))
      (label (position 50 0) (text "(obj)"))
      (label (position 59 0) (text "(tris)")) 
      (label (position 3 1) (text "(NOT)"))
      (label (position 11 1) (text "INSIDE"))
      (label (position 21 1) (foreground (user_option "form_text_highlight")) 
                             (text "3DM"))
      (label (position 37 1) (text "loc"))
      (label (position 42 1) (text "id rng"))
      (label (position 50 1) (text "(obj rng)"))
      (label (position 59 1) (text "(tris rng)")) 
      (label (position 3 2) (text "(NOT)"))
      (label (position 11 2) (text "INSIDE"))
      (label (position 21 2) (foreground (user_option "form_text_highlight")) 
                             (text "STRING"))
      (label (position 37 2) (text "loc"))
      (label (position 42 2) (text "id rng"))
      (label (position 50 2) (text "(str rng)"))
      (label (position 59 2) (text "(seg rng)")) 
      (label (position 67 2) (text "ext"))
      (label (position 3 3) (text "(NOT)"))
      (label (position 11 3) (text "ABOVE"))
      (label (position 21 3) (foreground (user_option "form_text_highlight"))
                              (text "X PLANE"))
      (label (position 37 3) (text "x coord"))
      (label (position 3 4) (text "(NOT)"))
      (label (position 11 4) (text "ABOVE "))
      (label (position 21 4) (foreground (user_option "form_text_highlight")) 
                             (text "Y PLANE"))
      (label (position 37 4) (text "y coord"))
      (label (position 3 5) (text "(NOT)"))
      (label (position 11 5) (text "ABOVE"))
      (label (position 21 5) (foreground (user_option "form_text_highlight")) 
                             (text "Z PLANE"))
      (label (position 37 5) (text "z coord"))
      (label (position 3 6) (text "(NOT)"))
      (label (position 11 6) (text "ABOVE"))
      (label (position 21 6) (foreground (user_option "form_text_highlight"))
                              (text "PLANE"))
      (label (position 37 6) (text "x coeff"))
      (label (position 45 6) (text "y coeff"))
      (label (position 52 6) (text "z coeff"))
      (label (position 59 6) (text "const")) 
      (label (position 3 7) (text "(NOT)"))
      (label (position 11 7) (text ">"))
      (label (position 21 7) (foreground (user_option "form_text_highlight"))
                             (text "BLOCK"))
      (label (position 37 7) (text "attr"))
      (label (position 45 7) (text "value"))
      (label (position 52 7) (text "(model)"))
      (label (position 3 8) (text "(NOT)"))
      (label (position 11 8) (text "<"))
      (label (position 21 8) (foreground (user_option "form_text_highlight")) 
                             (text "BLOCK"))
      (label (position 37 8) (text "attr"))
      (label (position 45 8) (text "value"))
      (label (position 52 8) (text "(model)"))
      (label (position 3 9) (text "(NOT)"))
      (label (position 11 9) (text "="))
      (label (position 21 9) (foreground (user_option "form_text_highlight"))
                             (text "BLOCK"))
      (label (position 37 9) (text "attr"))
      (label (position 45 9) (text "value"))
      (label (position 52 9) (text "(model)"))
      (label (position 3 10) (text "(NOT)"))
      (label (position 11 10) (text "INSIDE"))
      (label (position 21 10) (foreground (user_option "form_text_highlight"))
        (text "CONSTRAINT"))
      (label (position 37 10) (text "file"))
    )
  )
  (scroll_block "constraints" (position 2 12) (size 71 4)
    (scroll_size 71 4)
    (repeat interactive (grow 0 1) (instances 4 (min 4) (max 26)))
    (main
	(field "not" (position  3  0) (display_length  3) (input allowed)
	    (value_in "" "NOT") (translate upper) (null allowed) (max_length 3))
	(field "op" (position 11  0) (display_length  6) (input allowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6))
	(field "contype" (position 21  0) (display_length 13) (input allowed)
       	    (value_in "" "CONSTRAINT" "3DM" "BLOCK" "DTM" "PLANE" "STRING" "X PLANE" "Y PLANE" "Z PLANE" ) (translate upper) 
	    (null allowed) (max_length 10))
	(field "location" (position 36  0) (display_length  4) (input allowed)
	    (max_length 256) (null allowed))
	(field "id" (position 44  0) (display_length  3) (input allowed)
	    (max_length 32) (null allowed))
	(field "rnga" (position 51  0) (display_length  5) (input allowed)
	    (max_length 32) (null allowed))
	(field "rngb" (position 59  0) (display_length  5) (input allowed)
	    (max_length 32) (null allowed))
	(field "lbound" (position 69  0) (display_length  5) (input allowed)
	    (max_length 32) (null allowed))
	(field "ubound" (position 71  0) (display_length  5) (input allowed)
	    (max_length 32) (null allowed))
	(field "ext" (position 67  0) (display_length  1) (input allowed)
	    (value_in "" "x" "y" "z") (translate lower) (null allowed) 
	    (max_length 1))
    ))

  (label (position  3 17) (text "Keep blocks partially in the constraint"))
  (label (position  3 18) (text "Constraint combination"))
  (label (position  3 19) (text "Save constraint to"))
  (field "conexp" (position 22 18) (display_length 50) (input allowed)
    (null allowed) (max_length 512)
    )
  (field "confile" (position 22 19) (display_length 40) (input allowed)
    (translate lower) (null allowed) (max_length 40)
    (file (extension trim "*.con"))
    )
  (field "keep_blocks" (position 22 20) (display_length 1) (input allowed)
    (null disallowed) (max_length 2)
    )
  (default_buttons)
)
