(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:04 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Outputting a Default Value on Timeout")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 13)
  (component 0 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 1 CONTEXT
   (name "Text Input")
   (interface
	(output 1
	 (type data)
	 (name "X")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 11)
	(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 3 LITERALCONSTANT
	 (name "Enter Text:")
	 (interface
	  (input 1
	   (type control)
	   (name "Default Value")
	   (requires
		(datatype Text)
	   )
	   (lock name constraints)
	   (optional yes)
	  )
	  (output 1
	   (name "Text")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Text
	   (data  "333")
	  )
	  (initValue Text
	   (data  "")
	  )
	 )
	)
	(component 4 EXITCONTEXT
	)
	(component 5 DELAY
	 (interface
	  (output 1
	   (name "Done")
	   (tag "Done")
	   (lock constraints)
	  )
	 )
	 (implementation
	  (delay 4)
	 )
	)
	(component 6 EXITCONTEXT
	)
	(component 8 LITERALCONSTANT
	 (name "Default Value")
	 (interface
	  (output 1
	   (name "Text")
	   (lock name constraints)
	  )
	 )
	 (implementation
	  (value Text
	   (data  "333")
	  )
	  (initValue Text
	   (data  "")
	  )
	 )
	)
	(component 9 JUNCTION
	 (name "JCT")
	 (interface
	  (input 1
	   (name "A")
	   (lock name constraints)
	  )
	  (input 2
	   (name "B")
	   (lock name constraints)
	  )
	  (output 1
	   (name "Data")
	   (lock name constraints)
	  )
	 )
	)
	(component 10 GATE
	 (interface
	  (input 1
	   (name "A")
	   (tag "InData")
	  )
	  (output 1
	   (name "X")
	   (tag "OutData")
	   (lock name constraints)
	  )
	 )
	)
	(configuration
	 (connect D1:1 D2:0)
	 (connect D0:1 D3:0)
	 (connect D7:1 D3:1)
	 (connect D3:0 D4:0)
	 (connect D9:0 D6:0)
	 (connect D3:1 D8:1)
	 (connect D9:1 D8:2)
	 (connect D5:1 D9:0)
	 (connect D7:1 D9:1)
	 (connect D8:1 O1:1)
	)
	(ShowOnExecPanel
	 (geometry 376 127 203 182)
	 (panel
	  (geometry 111 170 199 161)
	  (widget 3 detail
	   (title on)
	   (borderStyle flat)
	   (geometry 123 210 176 38)
	  )
	  (widget 0 detail
	   (title off)
	   (borderStyle none)
	   (geometry 141 260 60 20)
	  )
	  (widget 1 detail
	   (title off)
	   (borderStyle none)
	   (geometry 221 260 56 20)
	  )
	 )
	)
   )
  )
  (component 11 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 18
		  ""
		  "PURPOSE: To demonstrate outputting"
		  "the default value from a custom dialog"
		  "box when it times out."
		  ""
		  "USER DATA REQUIRED:  Press Run."
		  ""
		  "EXPLANATION: When the custom dialog box "
		  "shown in dialog2.vee times out, an empty "
		  "container is output from the UserObject."
		  "Often you want to output a value instead."
		  "This program shows the basic"
		  "structure and logic of a custom dialog"
		  "box with a timeout that outputs the default"
		  "value with the timeout period expires."
		  ""
		  "Refer to \"Building an Operator Interface with"
		  "HP VEE\" for more details."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 72 45 561 559)
	   (panel
		(geometry 135 155 550 391)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 377 497 66 34)
		)
		(widget 1 detail
		 (title on)
		 (borderStyle flat)
		 (geometry 147 185 526 308)
		 (editing disabled)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D2:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 12 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 677 348 146 25)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 71 123 79 15)
	 )
	 (detail
	  (geometry 61 223 558 374)
	  (configuration
	   (viewFor 0
		(active detail)
		(icon
		)
		(detail
		 (geometry 116 240 49 20)
		)
		(title off)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry 0 0 52 0)
		)
		(detail
		 (geometry 261 479 58 22)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 281 523 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 3
		(active detail)
		(icon
		 (geometry 0 0 84 0)
		)
		(detail
		 (geometry 89 298 182 25)
		)
	   )
	   (viewFor 4
		(active icon)
		(icon
		 (geometry 121 523 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 5
		(active detail)
		(icon
		 (geometry 428 203 45 15)
		)
		(detail
		 (geometry 350 335 81 31)
		)
	   )
	   (viewFor 6
		(active icon)
		(icon
		 (geometry 411 523 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 8
		(active detail)
		(icon
		 (geometry 0 0 107 0)
		)
		(detail
		 (geometry 199 416 143 28)
		)
	   )
	   (viewFor 9
		(active icon)
		(icon
		 (geometry 556 398 28 25)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 10
		(active icon)
		(icon
		 (geometry 451 413 38 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (connect D1:1 D2:0
		(points 3 321 490 340 490 340 520)
	   )
	   (connect D0:1 D3:0
		(points 3 167 250 180 250 180 277)
	   )
	   (connect D7:1 D3:1
		(points 6 344 430 360 430 360 380 70 380 70 310 86 310)
	   )
	   (connect D3:0 D4:0
		(points 2 180 325 180 520)
	   )
	   (connect D9:0 D6:0
		(points 2 470 430 470 520)
	   )
	   (connect D3:1 D8:1
		(points 6 273 310 290 310 290 290 490 290 490 400 553 400)
	   )
	   (connect D9:1 D8:2
		(points 2 491 420 553 420)
	   )
	   (connect D5:1 D9:0
		(points 3 433 350 470 350 470 410)
	   )
	   (connect D7:1 D9:1
		(points 4 344 430 360 430 360 420 448 420)
	   )
	   (connect D8:1 O1:1
		(points 4 586 410 602 410 602 410 618 410)
	   )
	  )
	  (stackingOrder 6 2 1 8 5 0 3 7 4 9)
	 )
	 (terminals on)
	)
	(viewFor 11
	 (active panel)
	 (icon
	  (geometry 675 572 110 25)
	 )
	 (panel
	  (geometry 41 92 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 143 105 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 107 118 647 485)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 497 425 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -12 81 24)
		)
		(detail
		 (geometry 333 418 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 302 338 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 437 494 437)
	   )
	   (connect D2:0 D1:1
		(points 5 410 365 410 390 310 390 310 437 330 437)
	   )
	   (connect D0:1 D2:0
		(points 5 545 427 570 427 570 320 410 320 410 335)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 12
	 (active icon)
	 (icon
	  (geometry 391 86 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 585 113 410 78)
	  (editing enabled)
	 )
	)
	(connect D1:1 D0:1
	 (points 4 651 410 660 410 660 360 674 360)
	)
   )
   (stackingOrder 0 1 3 2)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
