(form "20119" (size 76 21)
  (heading "EXAMPLE CONSTRAINT COMBINATION")

    (label
	(position 2 2)
	(text "This example shows how constraints may be combined using logical expressions.  These")
    )
    (label
	(position 2 3)
	(text "constraints mimic the classic sectional estimation technique where sectional outlines (all")
    )
  
    (label
	(position 2 4)
	(text "segments of String 1 in files sec20000.str and sec20100.str) are extended halfway to the")
    )
  
    (label
	(position 2 5)
	(text "next section (in the y direction).  The constraint expression gives all blocks that are between")
    )
  
    (label
	(position 2 6)
	(text "the limiting planes and within the outlines then combines each of the ")
    )
    (label
  (position 2 7)
  (text "subsets thus formed.")
    )
  
  (label 
    (position 2 8) 
    (foreground (user_option "form_text_highlight"))
    (text "REFERENCE - parenthesised items are optional")
  )
  
  (scroll_block "prompts" (position 2 9) (size 71 2) 
    (scroll_size 71 2)
    (main
      (label (position 3 0) (text "(NOT)"))
      (label (position 11 0) (text "INSIDE"))
      (label (position 21 0) (foreground (user_option "form_text_highlight"))
        (text "STRING"))
      (label (position 37 0) (text "loc"))
      (label (position 43 0) (text "id rng"))
      (label (position 51 0) (text "(str rng)"))
      (label (position 59 0) (text "(seg rng)")) 
      (label (position 67 0) (text "ext"))
      (label (position 3 1) (text "(NOT)"))
      (label (position 11 1) (text "ABOVE"))
      (label (position 21 1) (foreground (user_option "form_text_highlight"))
        (text "Y PLANE"))
      (label (position 37 1) (text "y coord"))
    )
  )
  (scroll_block "constraints" (position 2 12) (size 71 4)
    (scroll_size 71 26)
    (main
  (label (position 1 0) (text "a"))
  (label (position 1 1) (text "b"))
  (label (position 1 2) (text "c"))
  (label (position 1 3) (text "d"))
  (label (position 1 4) (text "e"))
  (label (position 1 5) (text "f"))
  (label (position 1 6) (text "g"))
  (label (position 1 7) (text "h"))
  (label (position 1 8) (text "i"))
  (label (position 1 9) (text "j"))
  (label (position 1 10) (text "k"))
  (label (position 1 11) (text "l"))
  (label (position 1 12) (text "m"))
  (label (position 1 13) (text "n"))
  (label (position 1 14) (text "o"))
  (label (position 1 15) (text "p"))
  (label (position 1 16) (text "q"))
  (label (position 1 17) (text "r"))
  (label (position 1 18) (text "s"))
  (label (position 1 19) (text "t"))
  (label (position 1 20) (text "u"))
  (label (position 1 21) (text "v"))
  (label (position 1 22) (text "w"))
  (label (position 1 23) (text "x"))
  (label (position 1 24) (text "y"))
  (label (position 1 25) (text "z"))
  (field "not1" (position  3  0) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
      (default "")
  )
  (field "not2" (position  3  1) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
      (default "")
  )
  (field "not3" (position  3  2) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
      (default "NOT")
  )
  (field "not4" (position  3  3) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
      (default "")
  )
  (field "not5" (position  3  4) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
      (default "")
  )
  (field "not6" (position  3  5) (display_length  3) (input disallowed)
      (value_in "" "NOT") (translate upper) (null allowed) (max_length 3)
	    (default "NOT")
	)
	(field "op1" (position 11  0) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6)
	    (default "INSIDE")
	)
	(field "op2" (position 11  1) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6)
	    (default "ABOVE")
	)
	(field "op3" (position 11  2) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6)
	    (default "ABOVE")
	)
	(field "op4" (position 11  3) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6)
	    (default "INSIDE")
	)
	(field "op5" (position 11  4) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
	    (null allowed) (max_length 6)
	    (default "ABOVE")
	)
	(field "op6" (position 11  5) (display_length  6) (input disallowed)
	    (value_in "" "ABOVE" "INSIDE" "=" ">" "<") (translate upper) 
      (null allowed) (max_length 6)
      (default "ABOVE")
  )
  (field "contype1" (position 21  0) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
                  "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "STRING")
  )
  (field "contype2" (position 21  1) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
                  "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "Y PLANE")
  )
  (field "contype3" (position 21  2) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
              "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "Y PLANE")
  )
  (field "contype4" (position 21  3) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
              "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "STRING")
  )
  (field "contype5" (position 21  4) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
                  "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "Y PLANE")
  )
  (field "contype6" (position 21  5) (display_length 13) (input disallowed)
      (value_in "" "DTM" "3DM" "STRING" "X PLANE" "Y PLANE" "Z PLANE" 
                  "PLANE" "BLOCK" "CONSTRAINT") (translate upper) 
      (null allowed) (max_length 10)
      (default "Y PLANE")
  )
  (field "location1" (position 36  0) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "sec")
  )
  (field "location2" (position 36  1) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "19050")
  )
  (field "location3" (position 36  2) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "20050")
  )
  (field "location4" (position 36  3) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "sec")
  )
  (field "location5" (position 36  4) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "20050")
  )
  (field "location6" (position 36  5) (display_length  4) (input disallowed)
      (max_length 26) (translate lower) (null allowed)
      (default "20150")
  )
  (field "id1" (position 44  0) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "20000")
  )
  (field "id2" (position 44  1) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "")
  )
  (field "id3" (position 44  2) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "")
  )
  (field "id4" (position 44  3) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "20100")
  )
  (field "id5" (position 44  4) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "")
  )
  (field "id6" (position 44  5) (display_length  3) (input disallowed)
      (max_length 16) (null allowed)
      (default "")
  )
  (field "rnga1" (position 51  0) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "1")
  )
  (field "rnga2" (position 51  1) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rnga3" (position 51  2) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rnga4" (position 51  3) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "1")
  )
  (field "rnga5" (position 51  4) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rnga6" (position 51  5) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb1" (position 59  0) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb2" (position 59  1) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb3" (position 59  2) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb4" (position 59  3) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb5" (position 59  4) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "rngb6" (position 59  5) (display_length  5) (input disallowed)
      (max_length 32) (null allowed)
      (default "")
  )
  (field "ext1" (position 67  0) (display_length  1) (input disallowed)
      (value_in "" "x" "y" "z") (translate lower) (null allowed) 
      (max_length 1)
      (default "")
  )
  (field "ext2" (position 67  1) (display_length  1) (input disallowed)
      (value_in "" "x" "y" "z") (translate lower) (null allowed) 
      (max_length 1)
      (default "")
  )
  (field "ext3" (position 67  2) (display_length  1) (input disallowed)
      (value_in "" "x" "y" "z") (translate lower) (null allowed) 
       (max_length 1)
      (default "")
   )
  (field "ext5" (position 67  4) (display_length  1) (input disallowed)
      (value_in "" "x" "y" "z") (translate lower) (null allowed) 
      (max_length 1)
      (default "")
  )
  (field "ext6" (position 67  5) (display_length  1) (input disallowed)
      (value_in "" "x" "y" "z") (translate lower) (null allowed) 
      (max_length 1)
      (default "")
  )
  ))
  (label (position  2 17) (text "Constraint combination"))
  (label (position  2 18) (text "Save constraint to"))
  (field "conexp" (position 23 17) (display_length 49) (input disallowed)
    (null allowed) (max_length 512)
    (default "(a AND b AND c) OR (d AND e AND f)" /* DON'T TRANSLATE! */)
  )
  (field "confile" (position 23 18) (display_length 40) (input disallowed)
    (null allowed) (max_length 40)
    (default "")
  )
  (default_buttons)
)
