(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:09 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Self-Modifying Choices")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 4)
  (component 0 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 1 CONTEXT
   (name "Test Input")
   (interface
	(output 1
	 (type data)
	 (name "X")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 21)
	(popupMoveable)
	(component 0 CONFIRM25
	 (interface
	  (output 1
	   (name "Go")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (component enterButton yes)
	  (component escapeButton no)
	 )
	)
	(component 1 CONFIRM25
	 (name "Cancel")
	 (interface
	  (output 1
	   (name "Go")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (component enterButton no)
	  (component escapeButton yes)
	 )
	)
	(component 2 EXITCONTEXT
	)
	(component 4 EXITCONTEXT
	)
	(component 6 ENUMCONSTANT
	 (name "Select a Product")
	 (interface
	  (output 1
	   (name "Enum")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Enum
	   (values
		( "Phantom" 0)
		( "Beetle" 1)
		( "Viper" 2)
	   )
	   (data  "Viper")
	  )
	  (waitForEvent on)
	  (initValue Text
	   (data  "Phantom")
	  )
	 )
	)
	(component 7 ENUMCONSTANT
	 (name "Select the test to run")
	 (interface
	  (input 1
	   (type control)
	   (name "Enum Values")
	   (lock name constraints)
	   (optional yes)
	  )
	  (output 1
	   (name "Enum")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Enum
	   (values
		( "Viper - Test1" 0)
		( "Viper - Test2" 1)
		( "Viper - Test3" 2)
	   )
	   (data  "Viper - Test1")
	  )
	  (initValue Text
	   (data  "Viper - Test1")
	  )
	 )
	)
	(component 10 IFTHENELSE
	 (interface
	  (input 1
	   (name "A")
	   (optional yes)
	  )
	  (output 1
	   (name "Then")
	   (lock name constraints)
	  )
	  (output 2
	   (name "Else If")
	   (lock name constraints)
	  )
	  (output 3
	   (name "Else")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (expr "A==\"Phantom\"")
	  (expr "A==\"Beetle\"")
	 )
	)
	(component 11 LITERALCONSTANT
	 (name "Phantom Tests")
	 (interface
	  (output 1
	   (name "Text")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Text
	   (numDims 1)
	   (size 3)
	   (data 
		 [ "Phantom - Test1" "Phantom - Test2" "Phantom - Test3" ]
	   )
	  )
	  (initValue Text
	   (data  "")
	  )
	 )
	)
	(component 12 LITERALCONSTANT
	 (name "Beetle Tests")
	 (interface
	  (output 1
	   (name "Text")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Text
	   (numDims 1)
	   (size 3)
	   (data 
		 [ "Beetle - Test1" "Beetle - Test2" "Beetle- Test3" ]
	   )
	  )
	  (initValue Text
	   (data  "")
	  )
	 )
	)
	(component 13 LITERALCONSTANT
	 (name "Viper Tests")
	 (interface
	  (output 1
	   (name "Text")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Text
	   (numDims 1)
	   (size 3)
	   (data 
		 [ "Viper - Test1" "Viper - Test2" "Viper - Test3" ]
	   )
	  )
	  (initValue Text
	   (data  "")
	  )
	 )
	)
	(component 15 JUNCTION
	 (name "JCT")
	 (interface
	  (input 1
	   (name "A")
	   (lock name constraints)
	  )
	  (input 2
	   (name "B")
	   (lock name constraints)
	  )
	  (input 3
	   (name "C")
	   (optional yes)
	  )
	  (output 1
	   (name "Data")
	   (lock name constraints)
	  )
	 )
	)
	(component 17 REPEATUNTILBREAK
	 (interface
	  (output 1
	   (name "Continuous")
	   (lock name constraints)
	  )
	 )
	)
	(configuration
	 (connect D1:1 D2:0)
	 (connect D5:0 D3:0)
	 (connect D11:1 D4:0)
	 (connect D0:1 D5:0)
	 (connect D10:1 D5:1)
	 (connect D4:1 D6:1)
	 (connect D6:1 D7:0)
	 (connect D6:2 D8:0)
	 (connect D6:3 D9:0)
	 (connect D7:1 D10:1)
	 (connect D8:1 D10:2)
	 (connect D9:1 D10:3)
	 (connect D5:1 O1:1)
	)
	(ShowOnExecPanel
	 (geometry 603 146 371 201)
	 (panel
	  (geometry 257 400 367 180)
	  (widget 5 detail
	   (title on)
	   (borderStyle flat)
	   (geometry 429 430 185 21)
	   (format dropDown)
	  )
	  (widget 1 detail
	   (title off)
	   (borderStyle none)
	   (geometry 467 550 56 20)
	  )
	  (widget 0 detail
	   (title off)
	   (borderStyle none)
	   (geometry 357 550 60 20)
	  )
	  (widget 4 detail
	   (title on)
	   (borderStyle flat)
	   (geometry 269 430 148 79)
	   (format buttons)
	  )
	 )
	)
   )
  )
  (component 2 CONTEXT
   (name "Press For")
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 3)
	(component 0 IFTHENELSE
	 (name "!= 0")
	 (interface
	  (input 1
	   (name "A")
	   (optional yes)
	  )
	  (output 1
	   (name "Then")
	   (lock name constraints)
	  )
	  (output 2
	   (name "Else")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (expr "a!=0")
	 )
	)
	(component 1 TOGGLE25
	 (name "Info About")
	 (interface
	  (input 1
	   (type control)
	   (name "Reset")
	   (lock name constraints)
	   (optional yes)
	  )
	  (output 1
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Int32
	   (data  0)
	  )
	  (autoTrigger on)
	  (initValue Int32
	   (data  0)
	  )
	 )
	)
	(component 2 CONTEXT
	 (name "Info About This Example")
	 (implementation
	  (locked no)
	  (trigMode deg)
	  (nextID 3)
	  (popupMoveable)
	  (component 0 CONFIRM25
	   (name "DONE")
	   (description2 7
		"This tiny \"thread\" begins running when the"
		"enclosing UserObject is executed.  When the user"
		"acknowledges the OK/DONE button, there is nothing"
		"left to execute, so the thread ends.  Since there"
		"are not other threads running, the User Object"
		"is completed and will exit, removing the Show on"
		"execute Panel."
	   )
	   (interface
		(output 1
		 (name "Go")
		 (lock name constraints)
		)
	   )
	   (implementation
		(component enterButton yes)
		(component escapeButton yes)
	   )
	  )
	  (component 2 NOTE
	   (implementation
		(text2 23
		  ""
		  "PURPOSE: To demonstrate a custom dialog "
		  "box that modifies the choices available"
		  "based on previous choices."
		  ""
		  "USER DATA REQUIRED:  Press Run. Select"
		  "one of the Radio Button choices and"
		  "see how the choices in the Drop-Down List"
		  "Box change. "
		  " "
		  "EXPLANATION: You may want to offer"
		  "users a set of selections based"
		  "on a previous selection. The"
		  "Radio Button object has Wait for Input"
		  "set (on its Properties dialog box)."
		  "This allows the Radio Button object to"
		  "execute only after the user has selected"
		  "a choice. This \"hold off\" lets you "
		  "make decisions or present choices based"
		  "on the user\'s choice."
		  ""
		  "Refer to \"Building an Operator Interface with"
		  "HP VEE\" for more details."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 42 79 509 509)
	   (panel
		(geometry 158 96 505 488)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 380 528 66 34)
		)
		(widget 1 detail
		 (title on)
		 (borderStyle flat)
		 (geometry 170 126 466 388)
		 (editing disabled)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D2:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 3 NOTE
   (name "Warranty Disclaimer")
   (implementation
	(text2 4
	  "This example is provided as an illustration"
	  "\"as is\", and Hewlett-Packard Company makes"
	  "no warranty of any kind with regard to this"
	  "example."
	)
   )
  )
  (configuration
   (connect D1:1 D0:1)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 849 415 162 30)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 442 523 77 15)
	 )
	 (detail
	  (geometry 62 209 736 443)
	  (configuration
	   (viewFor 0
		(active detail)
		(icon
		)
		(detail
		 (geometry 469 451 42 19)
		)
		(title off)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry 0 0 52 0)
		)
		(detail
		 (geometry 271 519 58 22)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 251 593 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 4
		(active icon)
		(icon
		 (geometry 461 593 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 6
		(active detail)
		(icon
		 (geometry 0 0 128 0)
		)
		(detail
		 (geometry 108 341 164 79)
		 (format buttons)
		)
	   )
	   (viewFor 7
		(active detail)
		(icon
		 (geometry 0 0 165 0)
		)
		(detail
		 (geometry 420 528 201 25)
		 (format dropDown)
		)
	   )
	   (viewFor 10
		(active detail)
		(icon
		)
		(detail
		 (geometry 322 349 137 62)
		)
		(terminals on)
	   )
	   (viewFor 11
		(active icon)
		(icon
		 (geometry 544 293 113 15)
		)
		(detail
		 (geometry 555 446 211 69)
		)
	   )
	   (viewFor 12
		(active icon)
		(icon
		 (geometry 554 333 92 15)
		)
		(detail
		 (geometry 425 496 211 69)
		)
	   )
	   (viewFor 13
		(active icon)
		(icon
		 (geometry 558 373 85 15)
		)
		(detail
		 (geometry 195 506 211 69)
		)
	   )
	   (viewFor 15
		(active icon)
		(icon
		 (geometry 736 323 28 34)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 17
		(active icon)
		(icon
		 (geometry 77 235 86 51)
		 (iconImage "loop.icn")
		)
		(detail
		)
		(terminals on)
	   )
	   (connect D1:1 D2:0
		(points 5 331 530 350 530 350 560 310 560 310 590)
	   )
	   (connect D5:0 D3:0
		(points 2 520 555 520 590)
	   )
	   (connect D11:1 D4:0
		(points 3 165 260 190 260 190 320)
	   )
	   (connect D0:1 D5:0
		(points 3 513 460 520 460 520 507)
	   )
	   (connect D10:1 D5:1
		(points 8 766 340 790 340 790 380 680 380 680 430 400 430 400 540 417 540)
	   )
	   (connect D4:1 D6:1
		(points 2 274 380 289 380)
	   )
	   (connect D6:1 D7:0
		(points 5 511 360 520 360 520 270 600 270 600 290)
	   )
	   (connect D6:2 D8:0
		(points 5 511 380 530 380 530 320 600 320 600 330)
	   )
	   (connect D6:3 D9:0
		(points 5 511 400 540 400 540 360 600 360 600 370)
	   )
	   (connect D7:1 D10:1
		(points 4 659 300 680 300 680 330 733 330)
	   )
	   (connect D8:1 D10:2
		(points 2 648 340 733 340)
	   )
	   (connect D9:1 D10:3
		(points 4 645 380 670 380 670 350 733 350)
	   )
	   (connect D5:1 O1:1
		(points 4 623 540 690 540 690 430 797 430)
	   )
	  )
	  (stackingOrder 6 10 4 7 8 9 1 2 5 11
	    3 0)
	 )
	 (terminals on)
	)
	(viewFor 2
	 (active panel)
	 (icon
	  (geometry 675 572 110 25)
	 )
	 (panel
	  (geometry 31 92 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 133 105 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 116 83 649 514)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 497 365 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -12 81 24)
		)
		(detail
		 (geometry 333 358 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 302 328 217 25)
		)
		(detail
		 (geometry 122 182 556 377)
		 (configuration
		  (viewFor 0
		   (active detail)
		   (icon
			(geometry -22 -12 45 24)
		   )
		   (detail
			(geometry 281 312 58 37)
		   )
		   (title off)
		  )
		  (viewFor 2
		   (active icon)
		   (icon
			(geometry 135 195 71 51)
			(iconImage "notepad.icn")
		   )
		   (detail
			(geometry 108 121 484 478)
			(editing enabled)
		   )
		  )
		 )
		 (stackingOrder 1 0)
		)
	   )
	   (connect D1:1 D0:1
		(points 2 449 377 494 377)
	   )
	   (connect D2:0 D1:1
		(points 5 410 355 410 420 310 420 310 377 330 377)
	   )
	   (connect D0:1 D2:0
		(points 5 545 367 570 367 570 310 410 310 410 325)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 3
	 (active icon)
	 (icon
	  (geometry 371 66 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 585 113 410 78)
	  (editing enabled)
	 )
	)
	(connect D1:1 D0:1
	 (points 2 830 430 846 430)
	)
   )
   (stackingOrder 1 3 2 0)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
