! SCCS_data: @(#) TextF 1.1 92/12/10 13:37:01
!
!         -----------Demo 8--Text Fields -------------
! This example uses captions and textFieldWidgets in a simulated data
! entry window.  The traversal option is turned on so that the control
! area widget passes the keyboard focus to successive text fields.
! I'm not sure how to center the row of buttons other than explicitly
! padding as is done in the bcontrol control area.

!*wcTrace:               True
Ori.wcChildren:		foot
Ori.wcCallback:		WcSetValue(this.title:TextF)

*threeD:		TRUE
*background:		grey

*foot.wcClass:		footerPanelWidgetClass
*foot.wcChildren:	control,textout

*control.wcClass:	controlAreaWidgetClass
*control.alignCaptions:	TRUE
*control.layoutType:	fixedcols
*control.measure:	1
*control.traversalManager:	TRUE
*control.wcChildren:	name,address,phone,bcontrol

*control*TextField.font:	8x13

*name.wcClass:		captionWidgetClass
*name.label:		Name:
*name.wcChildren:	nameField

*nameField.wcClass:	textFieldWidgetClass
*nameField.width:	200
*nameField.fontColor:	red

*address.wcClass:	captionWidgetClass
*address.label:		Address:
*address.wcChildren:	addressField

*addressField.wcClass:	textFieldWidgetClass
*addressField.width:	200

*phone.wcClass:		captionWidgetClass
*phone.label:		Phone:
*phone.wcChildren:	phoneField

*phoneField.wcClass:	textFieldWidgetClass
*phoneField.width:	200

!! I don't know how to center this in the full width.  It's done manually.
*bcontrol.wcClass:	controlAreaWidgetClass
*bcontrol.layoutType:	fixedcols
*bcontrol.measure:	3
*bcontrol.center:	TRUE
*bcontrol.hPad:		55
*bcontrol.wcChildren:	enter,delete,quit

*enter.wcClass:		oblongButtonGadgetClass
*enter.label:		Enter
*enter.select:		WcSetValueCB(*textout.string:	Saved entry)

*delete.wcClass:	oblongButtonGadgetClass
*delete.label:		Delete
*delete.select:		WcSetValueCB(*textout.string:   Deleted entry)

*quit.wcClass:		oblongButtonGadgetClass
*quit.label:		Quit
*quit.select:		WcExitCB

*textout.wcClass:	staticTextWidgetClass
*textout.width:		200
*textout.gravity:	northwest
*textout.string:	Idle...
