(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:00 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "A Simple Dialog Box")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 4)
  (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 5)
	(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
	)
	(configuration
	 (connect D1:1 D2:0)
	 (connect D0:1 D3:0)
	 (connect D3:0 D4:0)
	 (connect D3: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 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 18
		  ""
		  "PURPOSE: To demonstrate a simple "
		  "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.  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."
		  ""
		  "Refer to \"Building an Operator Interface with"
		  "HP VEE\" for more details."
		)
	   )
	  )
	  (configuration
	  )
	  (ShowOnExecPanel
	   (geometry 46 78 560 439)
	   (panel
		(geometry 102 91 556 418)
		(widget 0 detail
		 (title off)
		 (borderStyle flat)
		 (geometry 354 463 66 34)
		)
		(widget 1 detail
		 (title on)
		 (borderStyle flat)
		 (geometry 124 121 526 328)
		 (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 537 378 146 25)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 71 123 79 15)
	 )
	 (detail
	  (geometry 85 240 350 300)
	  (configuration
	   (viewFor 0
		(active detail)
		(icon
		)
		(detail
		 (geometry 136 260 49 20)
		)
		(title off)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry 0 0 52 0)
		)
		(detail
		 (geometry 331 429 58 22)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 301 483 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (viewFor 3
		(active detail)
		(icon
		 (geometry 0 0 84 0)
		)
		(detail
		 (geometry 123 376 214 29)
		)
	   )
	   (viewFor 4
		(active icon)
		(icon
		 (geometry 171 483 119 15)
		)
		(detail
		)
		(terminals on)
	   )
	   (connect D1:1 D2:0
		(points 5 391 440 400 440 400 460 360 460 360 480)
	   )
	   (connect D0:1 D3:0
		(points 3 187 270 230 270 230 355)
	   )
	   (connect D3:0 D4:0
		(points 2 230 407 230 480)
	   )
	   (connect D3:1 O1:1
		(points 4 339 390 386 390 386 390 434 390)
	   )
	  )
	  (stackingOrder 1 2 4 3 0)
	 )
	 (terminals on)
	)
	(viewFor 2
	 (active panel)
	 (icon
	  (geometry 355 288 110 25)
	 )
	 (panel
	  (geometry 41 102 319 77)
	  (widget 1 detail
	   (title off)
	   (borderStyle flat)
	   (geometry 143 115 114 39)
	   (scaled on)
	   (format button)
	  )
	 )
	 (detail
	  (geometry 87 58 647 485)
	  (configuration
	   (viewFor 0
		(active icon)
		(icon
		 (geometry 507 395 46 25)
		)
		(detail
		 (geometry 209 308 73 64)
		)
		(terminals on)
	   )
	   (viewFor 1
		(active detail)
		(icon
		 (geometry -40 -12 81 24)
		)
		(detail
		 (geometry 343 388 114 39)
		 (scaled on)
		 (format button)
		)
		(title off)
	   )
	   (viewFor 2
		(active icon)
		(icon
		 (geometry 282 298 217 25)
		)
		(detail
		 (geometry 112 122 556 377)
		 (configuration
		  (viewFor 0
		   (active detail)
		   (icon
			(geometry -22 -12 45 24)
		   )
		   (detail
			(geometry 271 252 58 37)
		   )
		   (title off)
		  )
		  (viewFor 2
		   (active detail)
		   (icon
			(geometry 125 135 71 51)
			(iconImage "notepad.icn")
		   )
		   (detail
			(geometry -82 -79 484 478)
			(editing enabled)
		   )
		  )
		 )
		 (stackingOrder 0 1)
		)
	   )
	   (connect D1:1 D0:1
		(points 2 459 407 504 407)
	   )
	   (connect D2:0 D1:1
		(points 5 390 325 390 350 320 350 320 407 340 407)
	   )
	   (connect D0:1 D2:0
		(points 5 555 397 580 397 580 280 390 280 390 295)
	   )
	  )
	  (stackingOrder 0 1 2)
	 )
	)
	(viewFor 3
	 (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 2 467 390 534 390)
	)
   )
   (stackingOrder 0 1 3 2)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
