(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:02 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "A Dialog Box with a Timeout")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 6)
  (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)
	)
	(output 2
	 (type data)
	 (name "Y")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(locked no)
	(trigMode deg)
	(nextID 7)
	(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
	  (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
	)
	(configuration
	 (connect D1:1 D2:0)
	 (connect D0:1 D3:0)
	 (connect D3:0 D4:0)
	 (connect D5:0 D6:0)
	 (connect D3:1 O1:1)
	 (connect D5:1 O2: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 4 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 19
		  ""
		  "PURPOSE: To demonstrate adding a timeout "
		  "to a custom dialog box built from"
		  "a UserObject Pop-Up Panel."
		  ""
		  "USER DATA REQUIRED:  Press Run."
		  ""
		  "EXPLANATION:  To get user input, you\'ll"
		  "generally use Dialog Box objects that"
		  "have a built-in timeout feature.  But"
		  "if you need more complex dialog boxes,"
		  "you need to make custom dialog boxes"
		  "from UserObject or UserFunction Pop-Up"
		  "Panels.  This program shows the basic"
		  "structure and logic of a custom dialog"
		  "box with a timeout."
		  ""
		  "Refer to \"Building an Operator Interface with"
		  "HP VEE\" for more details."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 62 71 539 430)
	   (panel
		(geometry 153 156 535 409)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 405 518 66 34)
		)
		(widget 1 detail
		 (title on)
		 (borderStyle flat)
		 (geometry 165 186 506 318)
		 (editing disabled)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D2:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 5 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 607 288 146 25)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 71 123 79 15)
	 )
	 (detail
	  (geometry 90 230 461 300)
	  (configuration
	   (viewFor 0
		(active detail)
		(icon
		)
		(detail
		 (geometry 106 280 49 20)
		)
		(title off)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry 0 0 52 0)
		)
		(detail
		 (geometry 261 449 58 22)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 271 503 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 3
		(active detail)
		(icon
		 (geometry 0 0 84 0)
		)
		(detail
		 (geometry 109 348 182 25)
		)
	   )
	   (viewFor 4
		(active icon)
		(icon
		 (geometry 141 503 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 5
		(active detail)
		(icon
		)
		(detail
		 (geometry 420 445 81 31)
		)
	   )
	   (viewFor 6
		(active icon)
		(icon
		 (geometry 401 503 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (connect D1:1 D2:0
		(points 3 321 460 330 460 330 500)
	   )
	   (connect D0:1 D3:0
		(points 3 157 290 200 290 200 327)
	   )
	   (connect D3:0 D4:0
		(points 2 200 375 200 500)
	   )
	   (connect D5:0 D6:0
		(points 2 460 478 460 500)
	   )
	   (connect D3:1 O1:1
		(points 4 293 360 310 360 310 300 550 300)
	   )
	   (connect D5:1 O2:1
		(points 4 503 460 526 460 526 460 550 460)
	   )
	  )
	  (stackingOrder 2 4 0 6 5 3 1)
	 )
	 (terminals on)
	)
	(viewFor 4
	 (active panel)
	 (icon
	  (geometry 675 572 110 25)
	 )
	 (panel
	  (geometry 31 112 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 133 125 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 97 98 647 485)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 507 445 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -12 81 24)
		)
		(detail
		 (geometry 343 438 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 312 348 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 459 457 504 457)
	   )
	   (connect D2:0 D1:1
		(points 5 420 375 420 400 320 400 320 457 340 457)
	   )
	   (connect D0:1 D2:0
		(points 5 555 447 580 447 580 330 420 330 420 345)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 5
	 (active icon)
	 (icon
	  (geometry 381 86 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 585 113 410 78)
	  (editing enabled)
	 )
	)
	(connect D1:1 D0:1
	 (points 2 583 300 604 300)
	)
   )
   (stackingOrder 0 1 3 2)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
