!
! HDSCalc
!
! 11/24/92 WNP, Created for Motif version of xcalc.
! 12/18/92 WNP, Changed name to HDS Calculator and icon name to HDSCalc.
! 01/14/93 WNP, Changed class to HDSCalc, and name of file to same.
! 01/14/93 WNP, Added paste translation to HP calc.
! 01/14/83 billb, Added recomputeSize resource disable for speedup.

! SCCSID = "@(#)HDSCalc	1.7	2/5/93"

! HDSCalc application class resource file

!misc stuff

*recomputeSize:	False
*XmPushButton.traversalOn:	False
*LCD.traversalOn:	False
!*ti.traversalOn:	FALSE  This will crash the application
*Title:	HDS calc
*Cursor:	hand2
*IconName:	Calc
*IconPixmap:	calculator
*Font:			-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*
*bevel.screen.LCD.Font:	-*-helvetica-bold-r-normal--*-120-*-*-*-*-*-*

*screen.LCD.width:			95
*ti.fractionBase:			50
*hp.fractionBase:			60

! bevel layout ti specific

*ti.bevel.leftAttachment:	XmATTACH_POSITION
*ti.bevel.leftPosition:		6
*ti.bevel.topAttachment:	XmATTACH_FORM
*ti.bevel.topOffset:		4
*ti.bevel.rightAttachment:	XmATTACH_POSITION
*ti.bevel.rightPosition:	44
*ti.bevel.bottomAttachment:	XmATTACH_POSITION
*ti.bevel.bottomPosition:	9

! bevel layout hp specific

*hp.bevel.leftAttachment:	XmATTACH_POSITION
*hp.bevel.leftPosition:		3
*hp.bevel.topAttachment:	XmATTACH_POSITION
*hp.bevel.topPosition:		2
*hp.bevel.rightAttachment:	XmATTACH_POSITION
*hp.bevel.rightPosition:	40
*hp.bevel.bottomAttachment:	XmATTACH_POSITION
*hp.bevel.bottomPosition:	18

! bevel.screen layout 
!		top row
*bevel.screen.LCD.value:		88888888888
*bevel.screen.M.labelString:		M
*bevel.screen.M.topAttachment:		XmATTACH_POSITION
*bevel.screen.M.topPosition:		3
*bevel.screen.M.leftAttachment:		XmATTACH_POSITION
*bevel.screen.M.leftPosition:		5

*bevel.screen.LCD.topAttachment:	XmATTACH_POSITION
*bevel.screen.LCD.topPosition:		3
*bevel.screen.LCD.leftAttachment:	XmATTACH_POSITION
*bevel.screen.LCD.leftPosition:		8
*bevel.screen.LCD.rightAttachment:	XmATTACH_POSITION
*bevel.screen.LCD.rightPosition:	92
*bevel.screen.LCD.alignment:		XmALIGNMENT_END

!		second row
*bevel.screen.INV.leftAttachment:	XmATTACH_POSITION
*bevel.screen.INV.leftPosition:		0
*bevel.screen.INV.topAttachment:	XmATTACH_POSITION
*bevel.screen.INV.topPosition:		60

*bevel.screen.DEG.leftAttachment:	XmATTACH_POSITION
*bevel.screen.DEG.leftPosition:		20
*bevel.screen.DEG.topAttachment:	XmATTACH_POSITION
*bevel.screen.DEG.topPosition:		60

*bevel.screen.RAD.leftAttachment:	XmATTACH_POSITION
*bevel.screen.RAD.leftPosition:		40
*bevel.screen.RAD.topAttachment:	XmATTACH_POSITION
*bevel.screen.RAD.topPosition:		60

*bevel.screen.GRAD.leftAttachment:	XmATTACH_POSITION
*bevel.screen.GRAD.leftPosition:	60
*bevel.screen.GRAD.topAttachment:	XmATTACH_POSITION
*bevel.screen.GRAD.topPosition:		60

*bevel.screen.P.leftAttachment:		XmATTACH_POSITION
*bevel.screen.P.leftPosition:		80
*bevel.screen.P.topAttachment:		XmATTACH_POSITION
*bevel.screen.P.topPosition:		60
*bevel.screen.P.labelString:		()

! Ti Translations
*ti.bevel.screen.LCD.Translations:	#override\n\
				Ctrl<Key>c:quit()\n\
				Ctrl<Key>h:clear()\n\
				None<Key>0:digit(0)\n\
				None<Key>1:digit(1)\n\
				None<Key>2:digit(2)\n\
				None<Key>3:digit(3)\n\
				None<Key>4:digit(4)\n\
				None<Key>5:digit(5)\n\
				None<Key>6:digit(6)\n\
				None<Key>7:digit(7)\n\
				None<Key>8:digit(8)\n\
				None<Key>9:digit(9)\n\
				<Key>KP_0:digit(0)\n\
				<Key>KP_1:digit(1)\n\
				<Key>KP_2:digit(2)\n\
				<Key>KP_3:digit(3)\n\
				<Key>KP_4:digit(4)\n\
				<Key>KP_5:digit(5)\n\
				<Key>KP_6:digit(6)\n\
				<Key>KP_7:digit(7)\n\
				<Key>KP_8:digit(8)\n\
				<Key>KP_9:digit(9)\n\
				<Key>KP_Enter:equal()\n\
				<Key>KP_Equal:equal()\n\
				<Key>KP_Multiply:multiply()\n\
				<Key>KP_Add:add()\n\
				<Key>KP_Subtract:subtract()\n\
				<Key>KP_Decimal:decimal()\n\
				<Key>KP_Divide:divide()\n\
				<Key>KP_Tab:equal()\n\
				<Key>Clear:clear()\n\
				:<Key>.:decimal()\n\
				:<Key>+:add()\n\
				:<Key>-:subtract()\n\
				:<Key>*:multiply()\n\
				:<Key>/:divide()\n\
				:<Key>(:leftParen()\n\
				:<Key>):rightParen()\n\
			        :<Key>!:factorial()\n\
				<Key>e:e()\n\
				:<Key>^:power()\n\
				<Key>p:pi()\n\
				<Key>i:inverse()\n\
				<Key>s:sine()\n\
				<Key>c:cosine()\n\
				<Key>t:tangent()\n\
				<Key>d:degree()\n\
				<Key>l:naturalLog()\n\
				:<Key>=:equal()\n\
				<Key>n:negate()\n\
				<Key>r:squareRoot()\n\
				<Key>space:clear()\n\
				<Key>q:quit()\n\
				<Key>Delete:clear()\n\
				<Key>BackSpace:clear()\n\
				<Btn1Down>,<Btn1Up>:toggle()selection()\n\
				<Btn3Up>:quit()\n\
				<Btn2Up>:paste()\n


*ti.button1.labelString:		1/x
*ti.button1.userData:			reciprocal
*ti.button2.labelString:		x^2
*ti.button2.userData:			square
*ti.button3.labelString:		SQRT
*ti.button3.userData:			squareRoot
*ti.button4.labelString:		CE/C
*ti.button4.userData:			clear
*ti.button5.labelString:		AC
*ti.button5.userData:			off

*ti.button6.labelString:		INV
*ti.button6.userData:			inverse
*ti.button7.labelString:		sin
*ti.button7.userData:			sine
*ti.button8.labelString:		cos
*ti.button8.userData:			cosine
*ti.button9.labelString:		tan
*ti.button9.userData:			tangent
*ti.button10.labelString:		DRG
*ti.button10.userData:			degree

*ti.button11.labelString:		e
*ti.button11.userData:			e
*ti.button12.labelString:		EE
*ti.button12.userData:			scientific
*ti.button13.labelString:		log
*ti.button13.userData:			logarithm
*ti.button14.labelString:		ln
*ti.button14.userData:			naturalLog
*ti.button15.labelString:		y^x
*ti.button15.userData:			power

*ti.button16.labelString:		PI
*ti.button16.userData:			pi
*ti.button17.labelString:		x!
*ti.button17.userData:			factorial
*ti.button18.labelString:		(
*ti.button18.userData:			leftParen
*ti.button19.labelString:		)
*ti.button19.userData:			rightParen
*ti.button20.labelString:		/
*ti.button20.userData:			divide

*ti.button21.labelString:		STO
*ti.button21.userData:			store
*ti.button22.labelString:		7
*ti.button22.userData:			digit7
*ti.button23.labelString:		8
*ti.button23.userData:			digit8
*ti.button24.labelString:		9
*ti.button24.userData:			digit9
*ti.button25.labelString:		*
*ti.button25.userData:			multiply

*ti.button26.labelString:		RCL
*ti.button26.userData:			recall
*ti.button27.labelString:		4
*ti.button27.userData:			digit4
*ti.button28.labelString:		5
*ti.button28.userData:			digit5
*ti.button29.labelString:		6
*ti.button29.userData:			digit6
*ti.button30.labelString:		-
*ti.button30.userData:			subtract

*ti.button31.labelString:		SUM
*ti.button31.userData:			sum
*ti.button32.labelString:		1
*ti.button32.userData:			digit1
*ti.button33.labelString:		2
*ti.button33.userData:			digit2
*ti.button34.labelString:		3
*ti.button34.userData:			digit3
*ti.button35.labelString:		+
*ti.button35.userData:			add

*ti.button36.labelString:		EXC
*ti.button36.userData:			exchange
*ti.button37.labelString:		0
*ti.button37.userData:			digit0
*ti.button38.labelString:		.
*ti.button38.userData:			decimal
*ti.button39.labelString:		+/-
*ti.button39.userData:			negate
*ti.button40.labelString:		=
*ti.button40.userData:			equal


*ti.button1.topAttachment:		XmATTACH_POSITION
*ti.button1.topPosition:		10
*ti.button1.bottomAttachment:	XmATTACH_POSITION
*ti.button1.bottomPosition:		15
*ti.button1.leftAttachment:		XmATTACH_POSITION
*ti.button1.leftPosition:		0
*ti.button1.rightAttachment:	XmATTACH_POSITION
*ti.button1.rightPosition:		10
*ti.button2.topAttachment:		XmATTACH_POSITION
*ti.button2.topPosition:		10
*ti.button2.bottomAttachment:	XmATTACH_POSITION
*ti.button2.bottomPosition:		15
*ti.button2.leftAttachment:		XmATTACH_POSITION
*ti.button2.leftPosition:		10
*ti.button2.rightAttachment:	XmATTACH_POSITION
*ti.button2.rightPosition:		20
*ti.button3.topAttachment:		XmATTACH_POSITION
*ti.button3.topPosition:		10
*ti.button3.bottomAttachment:	XmATTACH_POSITION
*ti.button3.bottomPosition:		15
*ti.button3.leftAttachment:		XmATTACH_POSITION
*ti.button3.leftPosition:		20
*ti.button3.rightAttachment:	XmATTACH_POSITION
*ti.button3.rightPosition:		30
*ti.button4.topAttachment:		XmATTACH_POSITION
*ti.button4.topPosition:		10
*ti.button4.bottomAttachment:	XmATTACH_POSITION
*ti.button4.bottomPosition:		15
*ti.button4.leftAttachment:		XmATTACH_POSITION
*ti.button4.leftPosition:		30
*ti.button4.rightAttachment:	XmATTACH_POSITION
*ti.button4.rightPosition:		40
*ti.button5.topAttachment:		XmATTACH_POSITION
*ti.button5.topPosition:		10
*ti.button5.bottomAttachment:	XmATTACH_POSITION
*ti.button5.bottomPosition:		15
*ti.button5.leftAttachment:		XmATTACH_POSITION
*ti.button5.leftPosition:		40
*ti.button5.rightAttachment:	XmATTACH_POSITION
*ti.button5.rightPosition:		50

*ti.button6.topAttachment:		XmATTACH_POSITION
*ti.button6.topPosition:		15
*ti.button6.bottomAttachment:	XmATTACH_POSITION
*ti.button6.bottomPosition:		20
*ti.button6.leftAttachment:		XmATTACH_POSITION
*ti.button6.leftPosition:		0
*ti.button6.rightAttachment:	XmATTACH_POSITION
*ti.button6.rightPosition:		10
*ti.button7.topAttachment:		XmATTACH_POSITION
*ti.button7.topPosition:		15
*ti.button7.bottomAttachment:	XmATTACH_POSITION
*ti.button7.bottomPosition:		20
*ti.button7.leftAttachment:		XmATTACH_POSITION
*ti.button7.leftPosition:		10
*ti.button7.rightAttachment:	XmATTACH_POSITION
*ti.button7.rightPosition:		20
*ti.button8.topAttachment:		XmATTACH_POSITION
*ti.button8.topPosition:		15
*ti.button8.bottomAttachment:	XmATTACH_POSITION
*ti.button8.bottomPosition:		20
*ti.button8.leftAttachment:		XmATTACH_POSITION
*ti.button8.leftPosition:		20
*ti.button8.rightAttachment:	XmATTACH_POSITION
*ti.button8.rightPosition:		30
*ti.button9.topAttachment:		XmATTACH_POSITION
*ti.button9.topPosition:		15
*ti.button9.bottomAttachment:	XmATTACH_POSITION
*ti.button9.bottomPosition:		20
*ti.button9.leftAttachment:		XmATTACH_POSITION
*ti.button9.leftPosition:		30
*ti.button9.rightAttachment:	XmATTACH_POSITION
*ti.button9.rightPosition:		40
*ti.button10.topAttachment:		XmATTACH_POSITION
*ti.button10.topPosition:		15
*ti.button10.bottomAttachment:	XmATTACH_POSITION
*ti.button10.bottomPosition:	20
*ti.button10.leftAttachment:	XmATTACH_POSITION
*ti.button10.leftPosition:		40
*ti.button10.rightAttachment:	XmATTACH_POSITION
*ti.button10.rightPosition:		50

*ti.button11.topAttachment:		XmATTACH_POSITION
*ti.button11.topPosition:		20
*ti.button11.bottomAttachment:	XmATTACH_POSITION
*ti.button11.bottomPosition:	25
*ti.button11.leftAttachment:	XmATTACH_POSITION
*ti.button11.leftPosition:		0
*ti.button11.rightAttachment:	XmATTACH_POSITION
*ti.button11.rightPosition:		10
*ti.button12.topAttachment:		XmATTACH_POSITION
*ti.button12.topPosition:		20
*ti.button12.bottomAttachment:	XmATTACH_POSITION
*ti.button12.bottomPosition:	25
*ti.button12.leftAttachment:	XmATTACH_POSITION
*ti.button12.leftPosition:		10
*ti.button12.rightAttachment:	XmATTACH_POSITION
*ti.button12.rightPosition:		20
*ti.button13.topAttachment:		XmATTACH_POSITION
*ti.button13.topPosition:		20
*ti.button13.bottomAttachment:	XmATTACH_POSITION
*ti.button13.bottomPosition:	25
*ti.button13.leftAttachment:	XmATTACH_POSITION
*ti.button13.leftPosition:		20
*ti.button13.rightAttachment:	XmATTACH_POSITION
*ti.button13.rightPosition:		30
*ti.button14.topAttachment:		XmATTACH_POSITION
*ti.button14.topPosition:		20
*ti.button14.bottomAttachment:	XmATTACH_POSITION
*ti.button14.bottomPosition:	25
*ti.button14.leftAttachment:	XmATTACH_POSITION
*ti.button14.leftPosition:		30
*ti.button14.rightAttachment:	XmATTACH_POSITION
*ti.button14.rightPosition:		40
*ti.button15.topAttachment:		XmATTACH_POSITION
*ti.button15.topPosition:		20
*ti.button15.bottomAttachment:	XmATTACH_POSITION
*ti.button15.bottomPosition:	25
*ti.button15.leftAttachment:	XmATTACH_POSITION
*ti.button15.leftPosition:		40
*ti.button15.rightAttachment:	XmATTACH_POSITION
*ti.button15.rightPosition:		50

*ti.button16.topAttachment:		XmATTACH_POSITION
*ti.button16.topPosition:		25
*ti.button16.bottomAttachment:	XmATTACH_POSITION
*ti.button16.bottomPosition:	30
*ti.button16.leftAttachment:	XmATTACH_POSITION
*ti.button16.leftPosition:		0
*ti.button16.rightAttachment:	XmATTACH_POSITION
*ti.button16.rightPosition:		10
*ti.button17.topAttachment:		XmATTACH_POSITION
*ti.button17.topPosition:		25
*ti.button17.bottomAttachment:	XmATTACH_POSITION
*ti.button17.bottomPosition:	30
*ti.button17.leftAttachment:	XmATTACH_POSITION
*ti.button17.leftPosition:		10
*ti.button17.rightAttachment:	XmATTACH_POSITION
*ti.button17.rightPosition:		20
*ti.button18.topAttachment:		XmATTACH_POSITION
*ti.button18.topPosition:		25
*ti.button18.bottomAttachment:	XmATTACH_POSITION
*ti.button18.bottomPosition:	30
*ti.button18.leftAttachment:	XmATTACH_POSITION
*ti.button18.leftPosition:		20
*ti.button18.rightAttachment:	XmATTACH_POSITION
*ti.button18.rightPosition:		30
*ti.button19.topAttachment:		XmATTACH_POSITION
*ti.button19.topPosition:		25
*ti.button19.bottomAttachment:	XmATTACH_POSITION
*ti.button19.bottomPosition:	30
*ti.button19.leftAttachment:	XmATTACH_POSITION
*ti.button19.leftPosition:		30
*ti.button19.rightAttachment:	XmATTACH_POSITION
*ti.button19.rightPosition:		40
*ti.button20.topAttachment:		XmATTACH_POSITION
*ti.button20.topPosition:		25
*ti.button20.bottomAttachment:	XmATTACH_POSITION
*ti.button20.bottomPosition:	30
*ti.button20.leftAttachment:	XmATTACH_POSITION
*ti.button20.leftPosition:		40
*ti.button20.rightAttachment:	XmATTACH_POSITION
*ti.button20.rightPosition:		50

*ti.button21.topAttachment:		XmATTACH_POSITION
*ti.button21.topPosition:		30
*ti.button21.bottomAttachment:	XmATTACH_POSITION
*ti.button21.bottomPosition:	35
*ti.button21.leftAttachment:	XmATTACH_POSITION
*ti.button21.leftPosition:		0
*ti.button21.rightAttachment:	XmATTACH_POSITION
*ti.button21.rightPosition:		10
*ti.button22.topAttachment:		XmATTACH_POSITION
*ti.button22.topPosition:		30
*ti.button22.bottomAttachment:	XmATTACH_POSITION
*ti.button22.bottomPosition:	35
*ti.button22.leftAttachment:	XmATTACH_POSITION
*ti.button22.leftPosition:		10
*ti.button22.rightAttachment:	XmATTACH_POSITION
*ti.button22.rightPosition:		20
*ti.button23.topAttachment:		XmATTACH_POSITION
*ti.button23.topPosition:		30
*ti.button23.bottomAttachment:	XmATTACH_POSITION
*ti.button23.bottomPosition:	35
*ti.button23.leftAttachment:	XmATTACH_POSITION
*ti.button23.leftPosition:		20
*ti.button23.rightAttachment:	XmATTACH_POSITION
*ti.button23.rightPosition:		30
*ti.button24.topAttachment:		XmATTACH_POSITION
*ti.button24.topPosition:		30
*ti.button24.bottomAttachment:	XmATTACH_POSITION
*ti.button24.bottomPosition:	35
*ti.button24.leftAttachment:	XmATTACH_POSITION
*ti.button24.leftPosition:		30
*ti.button24.rightAttachment:	XmATTACH_POSITION
*ti.button24.rightPosition:		40
*ti.button25.topAttachment:		XmATTACH_POSITION
*ti.button25.topPosition:		30
*ti.button25.bottomAttachment:	XmATTACH_POSITION
*ti.button25.bottomPosition:	35
*ti.button25.leftAttachment:	XmATTACH_POSITION
*ti.button25.leftPosition:		40
*ti.button25.rightAttachment:	XmATTACH_POSITION
*ti.button25.rightPosition:		50

*ti.button26.topAttachment:		XmATTACH_POSITION
*ti.button26.topPosition:		35
*ti.button26.bottomAttachment:	XmATTACH_POSITION
*ti.button26.bottomPosition:	40
*ti.button26.leftAttachment:	XmATTACH_POSITION
*ti.button26.leftPosition:		0
*ti.button26.rightAttachment:	XmATTACH_POSITION
*ti.button26.rightPosition:		10
*ti.button27.topAttachment:		XmATTACH_POSITION
*ti.button27.topPosition:		35
*ti.button27.bottomAttachment:	XmATTACH_POSITION
*ti.button27.bottomPosition:	40
*ti.button27.leftAttachment:	XmATTACH_POSITION
*ti.button27.leftPosition:		10
*ti.button27.rightAttachment:	XmATTACH_POSITION
*ti.button27.rightPosition:		20
*ti.button28.topAttachment:		XmATTACH_POSITION
*ti.button28.topPosition:		35
*ti.button28.bottomAttachment:	XmATTACH_POSITION
*ti.button28.bottomPosition:	40
*ti.button28.leftAttachment:	XmATTACH_POSITION
*ti.button28.leftPosition:		20
*ti.button28.rightAttachment:	XmATTACH_POSITION
*ti.button28.rightPosition:		30
*ti.button29.topAttachment:		XmATTACH_POSITION
*ti.button29.topPosition:		35
*ti.button29.bottomAttachment:	XmATTACH_POSITION
*ti.button29.bottomPosition:	40
*ti.button29.leftAttachment:	XmATTACH_POSITION
*ti.button29.leftPosition:		30
*ti.button29.rightAttachment:	XmATTACH_POSITION
*ti.button29.rightPosition:		40
*ti.button30.topAttachment:		XmATTACH_POSITION
*ti.button30.topPosition:		35
*ti.button30.bottomAttachment:	XmATTACH_POSITION
*ti.button30.bottomPosition:	40
*ti.button30.leftAttachment:	XmATTACH_POSITION
*ti.button30.leftPosition:		40
*ti.button30.rightAttachment:	XmATTACH_POSITION
*ti.button30.rightPosition:		50

*ti.button31.topAttachment:		XmATTACH_POSITION
*ti.button31.topPosition:		40
*ti.button31.bottomAttachment:	XmATTACH_POSITION
*ti.button31.bottomPosition:	45
*ti.button31.leftAttachment:	XmATTACH_POSITION
*ti.button31.leftPosition:		0
*ti.button31.rightAttachment:	XmATTACH_POSITION
*ti.button31.rightPosition:		10
*ti.button32.topAttachment:		XmATTACH_POSITION
*ti.button32.topPosition:		40
*ti.button32.bottomAttachment:	XmATTACH_POSITION
*ti.button32.bottomPosition:	45
*ti.button32.leftAttachment:	XmATTACH_POSITION
*ti.button32.leftPosition:		10
*ti.button32.rightAttachment:	XmATTACH_POSITION
*ti.button32.rightPosition:		20
*ti.button33.topAttachment:		XmATTACH_POSITION
*ti.button33.topPosition:		40
*ti.button33.bottomAttachment:	XmATTACH_POSITION
*ti.button33.bottomPosition:	45
*ti.button33.leftAttachment:	XmATTACH_POSITION
*ti.button33.leftPosition:		20
*ti.button33.rightAttachment:	XmATTACH_POSITION
*ti.button33.rightPosition:		30
*ti.button34.topAttachment:		XmATTACH_POSITION
*ti.button34.topPosition:		40
*ti.button34.bottomAttachment:	XmATTACH_POSITION
*ti.button34.bottomPosition:	45
*ti.button34.leftAttachment:	XmATTACH_POSITION
*ti.button34.leftPosition:		30
*ti.button34.rightAttachment:	XmATTACH_POSITION
*ti.button34.rightPosition:		40
*ti.button35.topAttachment:		XmATTACH_POSITION
*ti.button35.topPosition:		40
*ti.button35.bottomAttachment:	XmATTACH_POSITION
*ti.button35.bottomPosition:	45
*ti.button35.leftAttachment:	XmATTACH_POSITION
*ti.button35.leftPosition:		40
*ti.button35.rightAttachment:	XmATTACH_POSITION
*ti.button35.rightPosition:		50

*ti.button36.topAttachment:		XmATTACH_POSITION
*ti.button36.topPosition:		45
*ti.button36.bottomAttachment:	XmATTACH_POSITION
*ti.button36.bottomPosition:	50
*ti.button36.leftAttachment:	XmATTACH_POSITION
*ti.button36.leftPosition:		0
*ti.button36.rightAttachment:	XmATTACH_POSITION
*ti.button36.rightPosition:		10
*ti.button37.topAttachment:		XmATTACH_POSITION
*ti.button37.topPosition:		45
*ti.button37.bottomAttachment:	XmATTACH_POSITION
*ti.button37.bottomPosition:	50
*ti.button37.leftAttachment:	XmATTACH_POSITION
*ti.button37.leftPosition:		10
*ti.button37.rightAttachment:	XmATTACH_POSITION
*ti.button37.rightPosition:		20
*ti.button38.topAttachment:		XmATTACH_POSITION
*ti.button38.topPosition:		45
*ti.button38.bottomAttachment:	XmATTACH_POSITION
*ti.button38.bottomPosition:	50
*ti.button38.leftAttachment:	XmATTACH_POSITION
*ti.button38.leftPosition:		20
*ti.button38.rightAttachment:	XmATTACH_POSITION
*ti.button38.rightPosition:		30
*ti.button39.topAttachment:		XmATTACH_POSITION
*ti.button39.topPosition:		45
*ti.button39.bottomAttachment:	XmATTACH_POSITION
*ti.button39.bottomPosition:	50
*ti.button39.leftAttachment:	XmATTACH_POSITION
*ti.button39.leftPosition:		30
*ti.button39.rightAttachment:	XmATTACH_POSITION
*ti.button39.rightPosition:		40
*ti.button40.topAttachment:		XmATTACH_POSITION
*ti.button40.topPosition:		45
*ti.button40.bottomAttachment:	XmATTACH_POSITION
*ti.button40.bottomPosition:	50
*ti.button40.leftAttachment:	XmATTACH_POSITION
*ti.button40.leftPosition:		40
*ti.button40.rightAttachment:	XmATTACH_POSITION
*ti.button40.rightPosition:		50

*hp.Geometry:			336x164
*hp.bevel.screen.LCD.width:	180



*hp.bevel.screen.LCD.Translations:	#replace\n\
				Ctrl<Key>c:quit()\n\
				Ctrl<Key>h:back()\n\
				None<Key>0:digit(0)\n\
				None<Key>1:digit(1)\n\
				None<Key>2:digit(2)\n\
				None<Key>3:digit(3)\n\
				None<Key>4:digit(4)\n\
				None<Key>5:digit(5)\n\
				None<Key>6:digit(6)\n\
				None<Key>7:digit(7)\n\
				None<Key>8:digit(8)\n\
				None<Key>9:digit(9)\n\
				<Key>KP_0:digit(0)\n\
				<Key>KP_1:digit(1)\n\
				<Key>KP_2:digit(2)\n\
				<Key>KP_3:digit(3)\n\
				<Key>KP_4:digit(4)\n\
				<Key>KP_5:digit(5)\n\
				<Key>KP_6:digit(6)\n\
				<Key>KP_7:digit(7)\n\
				<Key>KP_8:digit(8)\n\
				<Key>KP_9:digit(9)\n\
				<Key>KP_Enter:enter()\n\
				<Key>KP_Multiply:multiply()\n\
				<Key>KP_Add:add()\n\
				<Key>KP_Subtract:subtract()\n\
				<Key>KP_Decimal:decimal()\n\
				<Key>KP_Divide:divide()\n\
				:<Key>.:decimal()\n\
				:<Key>+:add()\n\
				:<Key>-:subtract()\n\
				:<Key>*:multiply()\n\
				:<Key>/:divide()\n\
			        :<Key>!:factorial()\n\
				<Key>e:e()\n\
				:<Key>^:power()\n\
				<Key>p:pi()\n\
				<Key>i:inverse()\n\
				<Key>s:sine()\n\
				<Key>c:cosine()\n\
				<Key>t:tangent()\n\
				<Key>d:degree()\n\
				<Key>l:naturalLog()\n\
				<Key>n:negate()\n\
				<Key>r:squareRoot()\n\
				<Key>space:clear()\n\
				<Key>q:quit()\n\
				<Key>Delete:back()\n\
				<Key>Return:enter()\n\
				<Key>Linefeed:enter()\n\
				<Key>x:XexchangeY()\n\
				<Key>BackSpace:back()\n\
				<Btn1Down>,<Btn1Up>:toggle()selection()\n\
				<Btn3Up>:quit()\n\
				<Btn2Up>:paste()\n



*hp.button1.labelString:		SQRT
*hp.button1.userData:	squareRoot
*hp.button2.labelString:		e^x
*hp.button2.userData:	epower
*hp.button3.labelString:		10^x
*hp.button3.userData:	tenpower
*hp.button4.labelString:		y^x
*hp.button4.userData:	power
*hp.button5.labelString:		1/x
*hp.button5.userData:	reciprocal
*hp.button6.labelString:		CHS
*hp.button6.userData:	negate
*hp.button7.labelString:		7
*hp.button7.userData:	digit7
*hp.button8.labelString:		8
*hp.button8.userData:	digit8
*hp.button9.labelString:		9
*hp.button9.userData:	digit9
*hp.button10.labelString:		/
*hp.button10.userData:	divide

*hp.button11.labelString:		x!
*hp.button11.userData:	factorial
*hp.button12.labelString:		PI
*hp.button12.userData:	pi
*hp.button13.labelString:		sin
*hp.button13.userData:	sine
*hp.button14.labelString:		cos
*hp.button14.userData:	cosine
*hp.button15.labelString:		tan
*hp.button15.userData:	tangent
*hp.button16.labelString:		EEX
*hp.button16.userData:	scientific
*hp.button17.labelString:		4
*hp.button17.userData:	digit4
*hp.button18.labelString:		5
*hp.button18.userData:	digit5
*hp.button19.labelString:		6
*hp.button19.userData:	digit6
*hp.button20.labelString:		*
*hp.button20.userData:	multiply

*hp.button21.labelString:	
*hp.button22.labelString:	
*hp.button23.labelString:		Rv
*hp.button23.userData:	roll
*hp.button24.labelString:		x:y
*hp.button24.userData:	XexchangeY
*hp.button25.labelString:		<-
*hp.button25.userData:	back
*hp.button26.labelString:		ENTR
*hp.button26.userData:	enter
*hp.button27.labelString:		1
*hp.button27.userData:	digit1
*hp.button28.labelString:		2
*hp.button28.userData:	digit2
*hp.button29.labelString:		3
*hp.button29.userData:	digit3
*hp.button30.labelString:		-
*hp.button30.userData:	subtract

*hp.button31.labelString:		ON
*hp.button31.userData:	off
*hp.button32.labelString:		DRG
*hp.button32.userData:	degree
*hp.button33.labelString:		INV
*hp.button33.userData:	inverse
*hp.button34.labelString:		STO
*hp.button34.userData:	store
*hp.button35.labelString:		RCL
*hp.button35.userData:	recall
*hp.button36.labelString:		0
*hp.button36.userData:	digit0
*hp.button37.labelString:		.
*hp.button37.userData:	decimal
*hp.button38.labelString:		SUM
*hp.button38.userData:	sum
*hp.button39.labelString:		+
*hp.button39.userData:	add


*hp.button1.topAttachment:		XmATTACH_POSITION
*hp.button1.topPosition:		20
*hp.button1.bottomAttachment:	XmATTACH_POSITION
*hp.button1.bottomPosition:		30
*hp.button1.leftAttachment:		XmATTACH_POSITION
*hp.button1.leftPosition:		0
*hp.button1.rightAttachment:	XmATTACH_POSITION
*hp.button1.rightPosition:		6
*hp.button2.topAttachment:		XmATTACH_POSITION
*hp.button2.topPosition:		20
*hp.button2.bottomAttachment:	XmATTACH_POSITION
*hp.button2.bottomPosition:		30
*hp.button2.leftAttachment:		XmATTACH_POSITION
*hp.button2.leftPosition:		6
*hp.button2.rightAttachment:	XmATTACH_POSITION
*hp.button2.rightPosition:		12
*hp.button3.topAttachment:		XmATTACH_POSITION
*hp.button3.topPosition:		20
*hp.button3.bottomAttachment:	XmATTACH_POSITION
*hp.button3.bottomPosition:		30
*hp.button3.leftAttachment:		XmATTACH_POSITION
*hp.button3.leftPosition:		12
*hp.button3.rightAttachment:	XmATTACH_POSITION
*hp.button3.rightPosition:		18
*hp.button4.topAttachment:		XmATTACH_POSITION
*hp.button4.topPosition:		20
*hp.button4.bottomAttachment:	XmATTACH_POSITION
*hp.button4.bottomPosition:		30
*hp.button4.leftAttachment:		XmATTACH_POSITION
*hp.button4.leftPosition:		18
*hp.button4.rightAttachment:	XmATTACH_POSITION
*hp.button4.rightPosition:		24
*hp.button5.topAttachment:		XmATTACH_POSITION
*hp.button5.topPosition:		20
*hp.button5.bottomAttachment:	XmATTACH_POSITION
*hp.button5.bottomPosition:		30
*hp.button5.leftAttachment:		XmATTACH_POSITION
*hp.button5.leftPosition:		24
*hp.button5.rightAttachment:	XmATTACH_POSITION
*hp.button5.rightPosition:		30
*hp.button6.topAttachment:		XmATTACH_POSITION
*hp.button6.topPosition:		20
*hp.button6.bottomAttachment:	XmATTACH_POSITION
*hp.button6.bottomPosition:		30
*hp.button6.leftAttachment:		XmATTACH_POSITION
*hp.button6.leftPosition:		30
*hp.button6.rightAttachment:	XmATTACH_POSITION
*hp.button6.rightPosition:		36
*hp.button7.topAttachment:		XmATTACH_POSITION
*hp.button7.topPosition:		20
*hp.button7.bottomAttachment:	XmATTACH_POSITION
*hp.button7.bottomPosition:		30
*hp.button7.leftAttachment:		XmATTACH_POSITION
*hp.button7.leftPosition:		36
*hp.button7.rightAttachment:	XmATTACH_POSITION
*hp.button7.rightPosition:		42
*hp.button8.topAttachment:		XmATTACH_POSITION
*hp.button8.topPosition:		20
*hp.button8.bottomAttachment:	XmATTACH_POSITION
*hp.button8.bottomPosition:		30
*hp.button8.leftAttachment:		XmATTACH_POSITION
*hp.button8.leftPosition:		42
*hp.button8.rightAttachment:	XmATTACH_POSITION
*hp.button8.rightPosition:		48
*hp.button9.topAttachment:		XmATTACH_POSITION
*hp.button9.topPosition:		20
*hp.button9.bottomAttachment:	XmATTACH_POSITION
*hp.button9.bottomPosition:		30
*hp.button9.leftAttachment:		XmATTACH_POSITION
*hp.button9.leftPosition:		48
*hp.button9.rightAttachment:	XmATTACH_POSITION
*hp.button9.rightPosition:		54
*hp.button10.topAttachment:		XmATTACH_POSITION
*hp.button10.topPosition:		20
*hp.button10.bottomAttachment:	XmATTACH_POSITION
*hp.button10.bottomPosition:	30
*hp.button10.leftAttachment:	XmATTACH_POSITION
*hp.button10.leftPosition:		54
*hp.button10.rightAttachment:	XmATTACH_POSITION
*hp.button10.rightPosition:		60

*hp.button11.topAttachment:		XmATTACH_POSITION
*hp.button11.topPosition:		30
*hp.button11.bottomAttachment:	XmATTACH_POSITION
*hp.button11.bottomPosition:	40
*hp.button11.leftAttachment:	XmATTACH_POSITION
*hp.button11.leftPosition:		0
*hp.button11.rightAttachment:	XmATTACH_POSITION
*hp.button11.rightPosition:		6
*hp.button12.topAttachment:		XmATTACH_POSITION
*hp.button12.topPosition:		30
*hp.button12.bottomAttachment:	XmATTACH_POSITION
*hp.button12.bottomPosition:	40
*hp.button12.leftAttachment:	XmATTACH_POSITION
*hp.button12.leftPosition:		6
*hp.button12.rightAttachment:	XmATTACH_POSITION
*hp.button12.rightPosition:		12
*hp.button13.topAttachment:		XmATTACH_POSITION
*hp.button13.topPosition:		30
*hp.button13.bottomAttachment:	XmATTACH_POSITION
*hp.button13.bottomPosition:	40
*hp.button13.leftAttachment:	XmATTACH_POSITION
*hp.button13.leftPosition:		12
*hp.button13.rightAttachment:	XmATTACH_POSITION
*hp.button13.rightPosition:		18
*hp.button14.topAttachment:		XmATTACH_POSITION
*hp.button14.topPosition:		30
*hp.button14.bottomAttachment:	XmATTACH_POSITION
*hp.button14.bottomPosition:	40
*hp.button14.leftAttachment:	XmATTACH_POSITION
*hp.button14.leftPosition:		18
*hp.button14.rightAttachment:	XmATTACH_POSITION
*hp.button14.rightPosition:		24
*hp.button15.topAttachment:		XmATTACH_POSITION
*hp.button15.topPosition:		30
*hp.button15.bottomAttachment:	XmATTACH_POSITION
*hp.button15.bottomPosition:	40
*hp.button15.leftAttachment:	XmATTACH_POSITION
*hp.button15.leftPosition:		24
*hp.button15.rightAttachment:	XmATTACH_POSITION
*hp.button15.rightPosition:		30
*hp.button16.topAttachment:		XmATTACH_POSITION
*hp.button16.topPosition:		30
*hp.button16.bottomAttachment:	XmATTACH_POSITION
*hp.button16.bottomPosition:	40
*hp.button16.leftAttachment:	XmATTACH_POSITION
*hp.button16.leftPosition:		30
*hp.button16.rightAttachment:	XmATTACH_POSITION
*hp.button16.rightPosition:		36
*hp.button17.topAttachment:		XmATTACH_POSITION
*hp.button17.topPosition:		30
*hp.button17.bottomAttachment:	XmATTACH_POSITION
*hp.button17.bottomPosition:	40
*hp.button17.leftAttachment:	XmATTACH_POSITION
*hp.button17.leftPosition:		36
*hp.button17.rightAttachment:	XmATTACH_POSITION
*hp.button17.rightPosition:		42
*hp.button18.topAttachment:		XmATTACH_POSITION
*hp.button18.topPosition:		30
*hp.button18.bottomAttachment:	XmATTACH_POSITION
*hp.button18.bottomPosition:	40
*hp.button18.leftAttachment:	XmATTACH_POSITION
*hp.button18.leftPosition:		42
*hp.button18.rightAttachment:	XmATTACH_POSITION
*hp.button18.rightPosition:		48
*hp.button19.topAttachment:		XmATTACH_POSITION
*hp.button19.topPosition:		30
*hp.button19.bottomAttachment:	XmATTACH_POSITION
*hp.button19.bottomPosition:	40
*hp.button19.leftAttachment:	XmATTACH_POSITION
*hp.button19.leftPosition:		48
*hp.button19.rightAttachment:	XmATTACH_POSITION
*hp.button19.rightPosition:		54
*hp.button20.topAttachment:		XmATTACH_POSITION
*hp.button20.topPosition:		30
*hp.button20.bottomAttachment:	XmATTACH_POSITION
*hp.button20.bottomPosition:	40
*hp.button20.leftAttachment:	XmATTACH_POSITION
*hp.button20.leftPosition:		54
*hp.button20.rightAttachment:	XmATTACH_POSITION
*hp.button20.rightPosition:		60

*hp.button21.topAttachment:		XmATTACH_POSITION
*hp.button21.topPosition:		40
*hp.button21.bottomAttachment:	XmATTACH_POSITION
*hp.button21.bottomPosition:	50
*hp.button21.leftAttachment:	XmATTACH_POSITION
*hp.button21.leftPosition:		0
*hp.button21.rightAttachment:	XmATTACH_POSITION
*hp.button21.rightPosition:		6
*hp.button22.topAttachment:		XmATTACH_POSITION
*hp.button22.topPosition:		40
*hp.button22.bottomAttachment:	XmATTACH_POSITION
*hp.button22.bottomPosition:	50
*hp.button22.leftAttachment:	XmATTACH_POSITION
*hp.button22.leftPosition:		6
*hp.button22.rightAttachment:	XmATTACH_POSITION
*hp.button22.rightPosition:		12
*hp.button23.topAttachment:		XmATTACH_POSITION
*hp.button23.topPosition:		40
*hp.button23.bottomAttachment:	XmATTACH_POSITION
*hp.button23.bottomPosition:	50
*hp.button23.leftAttachment:	XmATTACH_POSITION
*hp.button23.leftPosition:		12
*hp.button23.rightAttachment:	XmATTACH_POSITION
*hp.button23.rightPosition:		18
*hp.button24.topAttachment:		XmATTACH_POSITION
*hp.button24.topPosition:		40
*hp.button24.bottomAttachment:	XmATTACH_POSITION
*hp.button24.bottomPosition:	50
*hp.button24.leftAttachment:	XmATTACH_POSITION
*hp.button24.leftPosition:		18
*hp.button24.rightAttachment:	XmATTACH_POSITION
*hp.button24.rightPosition:		24
*hp.button25.topAttachment:		XmATTACH_POSITION
*hp.button25.topPosition:		40
*hp.button25.bottomAttachment:	XmATTACH_POSITION
*hp.button25.bottomPosition:	50
*hp.button25.leftAttachment:	XmATTACH_POSITION
*hp.button25.leftPosition:		24
*hp.button25.rightAttachment:	XmATTACH_POSITION
*hp.button25.rightPosition:		30
*hp.button26.topAttachment:		XmATTACH_POSITION
*hp.button26.topPosition:		40
*hp.button26.bottomAttachment:	XmATTACH_POSITION
*hp.button26.bottomPosition:	60
*hp.button26.leftAttachment:	XmATTACH_POSITION
*hp.button26.leftPosition:		30
*hp.button26.rightAttachment:	XmATTACH_POSITION
*hp.button26.rightPosition:		36
*hp.button27.topAttachment:		XmATTACH_POSITION
*hp.button27.topPosition:		40
*hp.button27.bottomAttachment:	XmATTACH_POSITION
*hp.button27.bottomPosition:	50
*hp.button27.leftAttachment:	XmATTACH_POSITION
*hp.button27.leftPosition:		36
*hp.button27.rightAttachment:	XmATTACH_POSITION
*hp.button27.rightPosition:		42
*hp.button28.topAttachment:		XmATTACH_POSITION
*hp.button28.topPosition:		40
*hp.button28.bottomAttachment:	XmATTACH_POSITION
*hp.button28.bottomPosition:	50
*hp.button28.leftAttachment:	XmATTACH_POSITION
*hp.button28.leftPosition:		42
*hp.button28.rightAttachment:	XmATTACH_POSITION
*hp.button28.rightPosition:		48
*hp.button29.topAttachment:		XmATTACH_POSITION
*hp.button29.topPosition:		40
*hp.button29.bottomAttachment:	XmATTACH_POSITION
*hp.button29.bottomPosition:	50
*hp.button29.leftAttachment:	XmATTACH_POSITION
*hp.button29.leftPosition:		48
*hp.button29.rightAttachment:	XmATTACH_POSITION
*hp.button29.rightPosition:		54
*hp.button30.topAttachment:		XmATTACH_POSITION
*hp.button30.topPosition:		40
*hp.button30.bottomAttachment:	XmATTACH_POSITION
*hp.button30.bottomPosition:	50
*hp.button30.leftAttachment:	XmATTACH_POSITION
*hp.button30.leftPosition:		54
*hp.button30.rightAttachment:	XmATTACH_POSITION
*hp.button30.rightPosition:		60

*hp.button31.topAttachment:		XmATTACH_POSITION
*hp.button31.topPosition:		50
*hp.button31.bottomAttachment:	XmATTACH_POSITION
*hp.button31.bottomPosition:	60
*hp.button31.leftAttachment:	XmATTACH_POSITION
*hp.button31.leftPosition:		0
*hp.button31.rightAttachment:	XmATTACH_POSITION
*hp.button31.rightPosition:		6
*hp.button32.topAttachment:		XmATTACH_POSITION
*hp.button32.topPosition:		50
*hp.button32.bottomAttachment:	XmATTACH_POSITION
*hp.button32.bottomPosition:	60
*hp.button32.leftAttachment:	XmATTACH_POSITION
*hp.button32.leftPosition:		6
*hp.button32.rightAttachment:	XmATTACH_POSITION
*hp.button32.rightPosition:		12
*hp.button33.topAttachment:		XmATTACH_POSITION
*hp.button33.topPosition:		50
*hp.button33.bottomAttachment:	XmATTACH_POSITION
*hp.button33.bottomPosition:	60
*hp.button33.leftAttachment:	XmATTACH_POSITION
*hp.button33.leftPosition:		12
*hp.button33.rightAttachment:	XmATTACH_POSITION
*hp.button33.rightPosition:		18
*hp.button34.topAttachment:		XmATTACH_POSITION
*hp.button34.topPosition:		50
*hp.button34.bottomAttachment:	XmATTACH_POSITION
*hp.button34.bottomPosition:	60
*hp.button34.leftAttachment:	XmATTACH_POSITION
*hp.button34.leftPosition:		18
*hp.button34.rightAttachment:	XmATTACH_POSITION
*hp.button34.rightPosition:		24
*hp.button35.topAttachment:		XmATTACH_POSITION
*hp.button35.topPosition:		50
*hp.button35.bottomAttachment:	XmATTACH_POSITION
*hp.button35.bottomPosition:	60
*hp.button35.leftAttachment:	XmATTACH_POSITION
*hp.button35.leftPosition:		24
*hp.button35.rightAttachment:	XmATTACH_POSITION
*hp.button35.rightPosition:		30
*hp.button36.topAttachment:		XmATTACH_POSITION
*hp.button36.topPosition:		50
*hp.button36.bottomAttachment:	XmATTACH_POSITION
*hp.button36.bottomPosition:	60
*hp.button36.leftAttachment:	XmATTACH_POSITION
*hp.button36.leftPosition:		36
*hp.button36.rightAttachment:	XmATTACH_POSITION
*hp.button36.rightPosition:		42
*hp.button37.topAttachment:		XmATTACH_POSITION
*hp.button37.topPosition:		50
*hp.button37.bottomAttachment:	XmATTACH_POSITION
*hp.button37.bottomPosition:	60
*hp.button37.leftAttachment:	XmATTACH_POSITION
*hp.button37.leftPosition:		42
*hp.button37.rightAttachment:	XmATTACH_POSITION
*hp.button37.rightPosition:		48
*hp.button38.topAttachment:		XmATTACH_POSITION
*hp.button38.topPosition:		50
*hp.button38.bottomAttachment:	XmATTACH_POSITION
*hp.button38.bottomPosition:	60
*hp.button38.leftAttachment:	XmATTACH_POSITION
*hp.button38.leftPosition:		48
*hp.button38.rightAttachment:	XmATTACH_POSITION
*hp.button38.rightPosition:		54
*hp.button39.topAttachment:		XmATTACH_POSITION
*hp.button39.topPosition:		50
*hp.button39.bottomAttachment:	XmATTACH_POSITION
*hp.button39.bottomPosition:	60
*hp.button39.leftAttachment:	XmATTACH_POSITION
*hp.button39.leftPosition:		54
*hp.button39.rightAttachment:	XmATTACH_POSITION
*hp.button39.rightPosition:		60
