home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
various
/
push_button.amos
/
push_button.amosSourceCode
Wrap
AMOS Source Code
|
1993-01-08
|
644b
|
22 lines
' This Procedure will Push your box which has been previously set up
' with Draw. You will also need to set up the screen with the proc
' Screen_Set_Up.
' X and Y is the position of the top left hand corner
' X1 and Y1 is the position of the bottom right hand corner
' Texx and Texy is the position of the text
' Message$ is the name of the button
Procedure PUSH_[X,Y,X1,Y1,TEXX,TEXY,MESSAGE$]
' Written by Brett George
Ink 0
Box X-1,Y-1 To X1+1,Y1+1
Ink 2
Bar X,Y To X1,Y1
Ink 3
Draw X1,Y1 To X,Y1
Draw X1,Y1 To X1,Y
Ink 4
Draw X,Y To X1,Y
Draw X,Y To X,Y1
Ink 0,2
Text TEXX,TEXY,MESSAGE$
End Proc