(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:23:57 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 8)
  (component 0 INPUTDLG
   (name "Text Input")
   (interface
	(input 1
	 (name "Default Value")
	 (tag "Default Value")
	 (requires
	  (datatype Text)
	  (shape "Scalar")
	 )
	 (lock constraints)
	 (optional yes)
	 (buffer YES)
	)
	(output 1
	 (name "Value")
	 (lock name constraints)
	)
	(output 2
	 (name "Cancel")
	 (lock name constraints)
	)
	(output 3
	 (name "Timeout")
	 (lock name constraints)
	)
   )
   (implementation
	(autoTimeout 1)
	(timeout 4)
	(timeoutValue 1)
	(popupTitle "Text Input")
	(showTitle 1)
	(position 284 215)
	(inputType "text")
	(prompt "Enter the Product Number:")
	(initialValue "E2110-90002")
	(valueConstraint "strLen(value)>0")
	(vErrorMessage "You must enter text.")
	(okText "OK")
	(cancelText "Cancel")
	(secureInput 0)
	(maxInputChars 20)
	(errorMessagePosition 200 200)
   )
  )
  (component 1 GATE
   (interface
	(input 1
	 (name "A")
	 (tag "InData")
	)
	(output 1
	 (name "X")
	 (tag "OutData")
	 (lock name constraints)
	)
   )
  )
  (component 2 LITERALCONSTANT
   (name "Text")
   (interface
	(output 1
	 (name "Text")
	 (lock name constraints)
	)
   )
   (implementation
	(value Text
	 (data  "E2110-90002")
	)
	(initValue Text
	 (data  "")
	)
   )
  )
  (component 3 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 4 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 6 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 14
		  ""
		  "PURPOSE: To demonstrate outputting"
		  "the default value from a Dialog Box"
		  "object when it times out. "
		  ""
		  "USER DATA REQUIRED:  Press Run."
		  ""
		  "EXPLANATION: When a Dialog Box"
		  "objects times out, a \"1\" is output on the"
		  "Timeout output pin. Often, you want"
		  "to output a value instead. "
		  ""
		  "Refer to \"Building an Operator Interface with"
		  "HP VEE\" for more details."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 113 87 543 355)
	   (panel
		(geometry -69 283 539 334)
		(widget 1 detail
		 (title on)
		 (borderStyle flat)
		 (geometry -57 313 516 248)
		 (editing disabled)
		)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 173 575 66 34)
		)
	   )
	  )
	 )
	)
	(configuration
	 (connect D1:1 D0:1)
	 (connect D2:0 D1:1)
	 (connect D0:1 D2:0)
	)
   )
  )
  (component 7 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 D2:1 D0:1)
   (connect D0:3 D1:0)
   (connect D2:1 D1:1)
   (connect D0:1 D3:1)
   (connect D1:1 D3:2)
   (connect D3:1 D4:1)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 132 77 346 126)
	 )
	 (terminals on)
	)
	(viewFor 1
	 (active icon)
	 (icon
	  (geometry 546 275 49 31)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 2
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 23 276 214 29)
	 )
	)
	(viewFor 3
	 (active icon)
	 (icon
	  (geometry 640 98 40 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 4
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 697 98 146 25)
	 )
	)
	(viewFor 6
	 (active panel)
	 (icon
	  (geometry 285 398 110 25)
	 )
	 (panel
	  (geometry 31 352 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 133 365 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry -43 148 647 485)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 327 355 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -12 81 24)
		)
		(detail
		 (geometry 163 348 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 162 438 217 25)
		)
		(detail
		 (geometry 21 209 579 523)
		 (configuration
		  (viewFor 0
		   (active detail)
		   (icon
			(geometry -22 -12 45 24)
		   )
		   (detail
			(geometry 371 592 58 37)
		   )
		   (title off)
		  )
		  (viewFor 2
		   (active icon)
		   (icon
			(geometry 295 325 71 51)
			(iconImage "notepad.icn")
		   )
		   (detail
			(geometry 108 121 484 478)
			(editing enabled)
		   )
		  )
		 )
		 (stackingOrder 0 1)
		)
	   )
	   (connect D1:1 D0:1
		(points 2 279 367 324 367)
	   )
	   (connect D2:0 D1:1
		(points 5 270 465 270 490 140 490 140 367 160 367)
	   )
	   (connect D0:1 D2:0
		(points 5 375 357 400 357 400 410 270 410 270 435)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 7
	 (active icon)
	 (icon
	  (geometry 401 346 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 585 113 410 78)
	  (editing enabled)
	 )
	)
	(connect D2:1 D0:1
	 (points 6 239 290 260 290 260 240 10 240 10 140 29 140)
	)
	(connect D0:3 D1:0
	 (points 3 550 180 570 180 570 272)
	)
	(connect D2:1 D1:1
	 (points 2 239 290 543 290)
	)
	(connect D0:1 D3:1
	 (points 2 550 100 637 100)
	)
	(connect D1:1 D3:2
	 (points 4 597 290 620 290 620 120 637 120)
	)
	(connect D3:1 D4:1
	 (points 2 682 110 694 110)
	)
   )
   (stackingOrder 2 6 1 4 3 0 5)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
