version	U12.1.00
uid	button.u1-1788539923-0
record	Button_Rec,8
	0,win
	1,label
	2,proc
	3,arg
	4,x
	5,y
	6,w
	7,h
impl	error
link	evmux.u
link	graphics.u
global	5
	0,000011,Button_Rec,8
	1,000005,button,8
	2,000005,buttonrow,-8
	3,000005,buttonlabel,2
	4,000005,Exec_Button,4

proc button
	local	0,001000,win
	local	1,001000,label
	local	2,001000,proc
	local	3,001000,arg
	local	4,001000,x
	local	5,001000,y
	local	6,001000,w
	local	7,001000,h
	local	8,000020,r
	local	9,000000,Button_Rec
	local	10,000000,buttonlabel
	local	11,000000,BevelRectangle
	local	12,000000,sensor
	local	13,000000,Exec_Button
	con	0,002000,1,2
	declend
	filen	button.icn
	line	105
	colm	11
	synt	any
	mark	L1
	pnull
	var	8
	var	9
	var	0
	var	1
	var	2
	var	3
	var	4
	var	5
	var	6
	var	7
	line	108
	colm	19
	synt	any
	invoke	8
	line	108
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	var	10
	var	8
	var	1
	line	109
	colm	15
	synt	any
	invoke	2
	unmark
lab L2
	mark	L3
	line	110
	colm	4
	synt	if
	mark0
	pnull
	var	2
	line	110
	colm	7
	synt	any
	nonnull
	unmark
	mark	L4
	var	11
	var	0
	var	4
	var	5
	var	6
	var	7
	int	0
	line	111
	colm	21
	synt	any
	invoke	6
	unmark
lab L4
	var	12
	var	0
	line	112
	colm	19
	synt	any
	keywd	lpress
	var	13
	var	8
	var	4
	var	5
	var	6
	var	7
	line	112
	colm	13
	synt	any
	invoke	8
	line	110
	colm	4
	synt	endif
	unmark
lab L3
	mark	L5
	mark	L6
	var	8
	line	114
	colm	4
	synt	any
	pret
lab L6
	synt	any
	pfail
	unmark
lab L5
	pnull
	line	115
	colm	1
	synt	any
	pfail
	end
proc buttonrow
	local	0,001000,win
	local	1,001000,x
	local	2,001000,y
	local	3,001000,w
	local	4,001000,h
	local	5,001000,dx
	local	6,001000,dy
	local	7,001000,args
	local	8,000020,hlist
	local	9,000020,label
	local	10,000020,proc
	local	11,000020,arg
	local	12,000000,get
	local	13,000000,put
	local	14,000000,button
	con	0,002000,1,0
	con	1,002000,1,2
	declend
	line	117
	colm	11
	synt	any
	mark	L1
	line	120
	colm	4
	synt	if
	mark0
	pnull
	var	5
	int	0
	line	120
	colm	10
	synt	any
	numlt
	unmark
	pnull
	var	1
	dup
	var	3
	line	120
	colm	21
	synt	any
	minus
	asgn
	line	120
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	line	121
	colm	4
	synt	if
	mark0
	pnull
	var	6
	int	0
	line	121
	colm	10
	synt	any
	numlt
	unmark
	pnull
	var	2
	dup
	var	4
	line	121
	colm	21
	synt	any
	minus
	asgn
	line	121
	colm	4
	synt	endif
	unmark
lab L2
	mark	L3
	pnull
	var	8
	pnull
	line	122
	colm	13
	synt	any
	llist	0
	line	122
	colm	10
	synt	any
	asgn
	unmark
lab L3
	mark	L4
lab L5
	line	123
	colm	4
	synt	repeat
	mark	L5
	mark	L8
	pnull
	var	9
	mark	L9
	var	12
	var	7
	line	124
	colm	19
	synt	any
	invoke	1
	line	124
	colm	26
	synt	any
	esusp
	goto	L10
lab L9
	unmark
	unmark
	pnull
	goto	L7
lab L10
	line	124
	colm	13
	synt	any
	asgn
	unmark
lab L8
	mark	L11
	pnull
	var	10
	mark	L12
	var	12
	var	7
	line	125
	colm	18
	synt	any
	invoke	1
	line	125
	colm	25
	synt	any
	esusp
	goto	L13
lab L12
	unmark
	unmark
	pnull
	goto	L7
lab L13
	line	125
	colm	12
	synt	any
	asgn
	unmark
lab L11
	mark	L14
	pnull
	var	11
	mark	L15
	var	12
	var	7
	line	126
	colm	17
	synt	any
	invoke	1
	line	126
	colm	24
	synt	any
	esusp
	goto	L16
lab L15
	unmark
	unmark
	pnull
	goto	L7
lab L16
	line	126
	colm	11
	synt	any
	asgn
	unmark
lab L14
	line	127
	colm	7
	synt	ifelse
	mark	L17
	pnull
	pnull
	pnull
	var	9
	var	10
	line	127
	colm	16
	synt	any
	eqv
	var	11
	line	127
	colm	25
	synt	any
	eqv
	line	127
	colm	37
	synt	any
	keywd	null
	line	127
	colm	33
	synt	any
	eqv
	unmark
	mark	L19
	pnull
	var	1
	dup
	pnull
	var	5
	int	1
	line	128
	colm	19
	synt	any
	div
	line	128
	colm	12
	synt	any
	plus
	asgn
	unmark
lab L19
	pnull
	var	2
	dup
	pnull
	var	6
	int	1
	line	129
	colm	19
	synt	any
	div
	line	129
	colm	12
	synt	any
	plus
	asgn
	goto	L18
lab L17
	mark	L20
	var	13
	var	8
	var	14
	var	0
	var	9
	var	10
	var	11
	var	1
	var	2
	var	3
	var	4
	line	132
	colm	27
	synt	any
	invoke	8
	line	132
	colm	13
	synt	any
	invoke	2
	unmark
lab L20
	mark	L21
	pnull
	var	1
	dup
	var	5
	line	133
	colm	12
	synt	any
	plus
	asgn
	unmark
lab L21
	pnull
	var	2
	dup
	var	6
	line	134
	colm	12
	synt	any
	plus
	asgn
lab L18
	line	127
	colm	7
	synt	endifelse
lab L6
	unmark
	goto	L5
lab L7
	line	123
	colm	4
	synt	endrepeat
	unmark
lab L4
	mark	L22
	mark	L23
	var	8
	line	137
	colm	4
	synt	any
	pret
lab L23
	synt	any
	pfail
	unmark
lab L22
	pnull
	line	138
	colm	1
	synt	any
	pfail
	end
proc buttonlabel
	local	0,001000,r
	local	1,001000,s
	local	2,000000,EraseArea
	local	3,000000,CenterString
	con	0,002000,1,2
	declend
	line	140
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	0
	line	141
	colm	5
	synt	any
	field	label
	var	1
	line	141
	colm	12
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	line	142
	colm	4
	synt	ifelse
	mark	L3
	pnull
	pnull
	var	0
	line	142
	colm	9
	synt	any
	field	proc
	line	142
	colm	7
	synt	any
	null
	unmark
	var	2
	pnull
	var	0
	line	143
	colm	18
	synt	any
	field	win
	pnull
	var	0
	line	143
	colm	25
	synt	any
	field	x
	pnull
	var	0
	line	143
	colm	30
	synt	any
	field	y
	pnull
	var	0
	line	143
	colm	35
	synt	any
	field	w
	pnull
	var	0
	line	143
	colm	40
	synt	any
	field	h
	line	143
	colm	16
	synt	any
	invoke	5
	goto	L4
lab L3
	var	2
	pnull
	var	0
	line	145
	colm	18
	synt	any
	field	win
	pnull
	pnull
	var	0
	line	145
	colm	25
	synt	any
	field	x
	int	0
	line	145
	colm	27
	synt	any
	plus
	pnull
	pnull
	var	0
	line	145
	colm	32
	synt	any
	field	y
	int	0
	line	145
	colm	34
	synt	any
	plus
	pnull
	pnull
	var	0
	line	145
	colm	39
	synt	any
	field	w
	pnull
	int	0
	int	0
	line	145
	colm	43
	synt	any
	mult
	line	145
	colm	41
	synt	any
	minus
	pnull
	pnull
	var	0
	line	145
	colm	48
	synt	any
	field	h
	pnull
	int	0
	int	0
	line	145
	colm	52
	synt	any
	mult
	line	145
	colm	50
	synt	any
	minus
	line	145
	colm	16
	synt	any
	invoke	5
lab L4
	line	142
	colm	4
	synt	endifelse
	unmark
lab L2
	mark	L5
	var	3
	pnull
	var	0
	line	146
	colm	18
	synt	any
	field	win
	pnull
	pnull
	var	0
	line	146
	colm	25
	synt	any
	field	x
	pnull
	pnull
	var	0
	line	146
	colm	31
	synt	any
	field	w
	int	0
	line	146
	colm	33
	synt	any
	div
	line	146
	colm	28
	synt	any
	plus
	pnull
	pnull
	var	0
	line	146
	colm	38
	synt	any
	field	y
	pnull
	pnull
	var	0
	line	146
	colm	44
	synt	any
	field	h
	int	0
	line	146
	colm	46
	synt	any
	div
	line	146
	colm	41
	synt	any
	plus
	pnull
	var	0
	line	146
	colm	51
	synt	any
	field	label
	line	146
	colm	16
	synt	any
	invoke	4
	unmark
lab L5
	mark	L6
	mark	L7
	pnull
	line	147
	colm	4
	synt	any
	pret
lab L7
	synt	any
	pfail
	unmark
lab L6
	pnull
	line	148
	colm	1
	synt	any
	pfail
	end
proc Exec_Button
	local	0,001000,win
	local	1,001000,r
	local	2,001000,x
	local	3,001000,y
	local	4,000020,e
	local	5,000020,b
	local	6,000020,t
	local	7,000000,WAttrib
	local	8,000000,FillRectangle
	local	9,000000,BevelRectangle
	local	10,000000,Event
	local	11,000000,ontarget
	con	0,010000,14,144,162,141,167,157,160,075,162,145,166,145,162,163,145
	con	1,002000,1,2
	con	2,002000,1,0
	con	3,010000,11,144,162,141,167,157,160,075,143,157,160,171
	declend
	line	150
	colm	11
	synt	any
	mark	L1
	var	7
	var	0
	str	0
	line	153
	colm	11
	synt	any
	invoke	2
	unmark
lab L1
	mark	L2
	var	8
	var	0
	pnull
	pnull
	var	1
	line	154
	colm	24
	synt	any
	field	x
	int	1
	line	154
	colm	27
	synt	any
	plus
	pnull
	pnull
	var	1
	line	154
	colm	33
	synt	any
	field	y
	int	1
	line	154
	colm	36
	synt	any
	plus
	pnull
	pnull
	var	1
	line	154
	colm	42
	synt	any
	field	w
	pnull
	int	1
	int	1
	line	154
	colm	48
	synt	any
	mult
	line	154
	colm	45
	synt	any
	minus
	pnull
	pnull
	var	1
	line	154
	colm	53
	synt	any
	field	h
	pnull
	int	1
	int	1
	line	154
	colm	58
	synt	any
	mult
	line	154
	colm	56
	synt	any
	minus
	line	154
	colm	17
	synt	any
	invoke	5
	unmark
lab L2
	mark	L3
	var	9
	var	0
	pnull
	var	1
	line	155
	colm	25
	synt	any
	field	x
	pnull
	var	1
	line	155
	colm	30
	synt	any
	field	y
	pnull
	var	1
	line	155
	colm	35
	synt	any
	field	w
	pnull
	var	1
	line	155
	colm	40
	synt	any
	field	h
	pnull
	var	5
	pnull
	int	1
	line	155
	colm	49
	synt	any
	neg
	line	155
	colm	46
	synt	any
	asgn
	line	155
	colm	18
	synt	any
	invoke	6
	unmark
lab L3
	mark	L4
lab L5
	line	157
	colm	4
	synt	while
	mark0
	pnull
	var	4
	var	10
	var	0
	line	157
	colm	20
	synt	any
	invoke	1
	line	157
	colm	12
	synt	any
	asgn
	unmark
	mark	L5
	mark	L8
	pnull
	var	2
	line	158
	colm	12
	synt	any
	keywd	x
	line	158
	colm	9
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	3
	line	159
	colm	12
	synt	any
	keywd	y
	line	159
	colm	9
	synt	any
	asgn
	unmark
lab L9
	line	160
	colm	7
	synt	case
	mark0
	var	4
	eret
	mark	L11
	ccase
	line	161
	colm	10
	synt	any
	keywd	ldrag
	line	161
	colm	16
	synt	any
	eqv
	unmark
	pop
	mark	L12
	pnull
	var	6
	line	162
	colm	19
	synt	ifelse
	mark	L13
	var	11
	var	1
	var	2
	var	3
	line	162
	colm	30
	synt	any
	invoke	3
	unmark
	pnull
	int	1
	line	162
	colm	45
	synt	any
	neg
	goto	L14
lab L13
	int	1
lab L14
	line	162
	colm	19
	synt	endifelse
	line	162
	colm	15
	synt	any
	asgn
	unmark
lab L12
	line	163
	colm	13
	synt	if
	mark0
	pnull
	var	5
	dup
	var	6
	line	163
	colm	18
	synt	any
	neqv
	asgn
	unmark
	mark	L15
	var	9
	var	0
	pnull
	var	1
	line	164
	colm	37
	synt	any
	field	x
	pnull
	var	1
	line	164
	colm	42
	synt	any
	field	y
	pnull
	var	1
	line	164
	colm	47
	synt	any
	field	w
	pnull
	var	1
	line	164
	colm	52
	synt	any
	field	h
	var	5
	line	164
	colm	30
	synt	any
	invoke	6
	unmark
lab L15
	var	8
	var	0
	pnull
	pnull
	var	1
	line	166
	colm	20
	synt	any
	field	x
	int	1
	line	166
	colm	23
	synt	any
	plus
	pnull
	pnull
	var	1
	line	166
	colm	29
	synt	any
	field	y
	int	1
	line	166
	colm	32
	synt	any
	plus
	pnull
	pnull
	var	1
	line	166
	colm	38
	synt	any
	field	w
	pnull
	int	1
	int	1
	line	166
	colm	44
	synt	any
	mult
	line	166
	colm	41
	synt	any
	minus
	pnull
	pnull
	var	1
	line	166
	colm	49
	synt	any
	field	h
	pnull
	int	1
	int	1
	line	166
	colm	55
	synt	any
	mult
	line	166
	colm	52
	synt	any
	minus
	line	165
	colm	29
	synt	any
	invoke	5
	line	163
	colm	13
	synt	endif
	goto	L10
lab L11
	mark	L16
	ccase
	line	169
	colm	10
	synt	any
	keywd	lrelease
	line	169
	colm	19
	synt	any
	eqv
	unmark
	pop
	mark	L17
	line	170
	colm	13
	synt	ifelse
	mark	L18
	pnull
	var	5
	int	2
	line	170
	colm	18
	synt	any
	numlt
	unmark
	mark	L20
	var	9
	var	0
	pnull
	var	1
	line	171
	colm	37
	synt	any
	field	x
	pnull
	var	1
	line	171
	colm	42
	synt	any
	field	y
	pnull
	var	1
	line	171
	colm	47
	synt	any
	field	w
	pnull
	var	1
	line	171
	colm	52
	synt	any
	field	h
	int	1
	line	171
	colm	30
	synt	any
	invoke	6
	unmark
lab L20
	mark	L21
	var	8
	var	0
	pnull
	pnull
	var	1
	line	173
	colm	20
	synt	any
	field	x
	int	1
	line	173
	colm	23
	synt	any
	plus
	pnull
	pnull
	var	1
	line	173
	colm	29
	synt	any
	field	y
	int	1
	line	173
	colm	32
	synt	any
	plus
	pnull
	pnull
	var	1
	line	173
	colm	38
	synt	any
	field	w
	pnull
	int	1
	int	1
	line	173
	colm	44
	synt	any
	mult
	line	173
	colm	41
	synt	any
	minus
	pnull
	pnull
	var	1
	line	173
	colm	49
	synt	any
	field	h
	pnull
	int	1
	int	1
	line	173
	colm	55
	synt	any
	mult
	line	173
	colm	52
	synt	any
	minus
	line	172
	colm	29
	synt	any
	invoke	5
	unmark
lab L21
	mark	L22
	var	7
	var	0
	str	3
	line	174
	colm	23
	synt	any
	invoke	2
	unmark
lab L22
	pnull
	var	1
	line	175
	colm	17
	synt	any
	field	proc
	var	0
	pnull
	var	1
	line	175
	colm	29
	synt	any
	field	arg
	line	175
	colm	22
	synt	any
	invoke	2
	goto	L19
lab L18
	var	7
	var	0
	str	3
	line	178
	colm	23
	synt	any
	invoke	2
lab L19
	line	170
	colm	13
	synt	endifelse
	unmark
lab L17
	mark	L23
	pnull
	line	179
	colm	13
	synt	any
	pret
lab L23
	synt	any
	pfail
	goto	L10
lab L16
	efail
lab L10
	line	160
	colm	7
	synt	endcase
lab L6
	unmark
	goto	L5
lab L7
	line	157
	colm	4
	synt	endwhile
	unmark
lab L4
	pnull
	line	183
	colm	1
	synt	any
	pfail
	end
