draw button number xpos ypos width height string
Draws a button centered on xpos,ypos
with the
following attributes:
number
button number, 1 - 512xpos
x center of the button in page coordinates (inches)ypos
y center of the button in page coordinates (inches)width
width (x) of the button (inches)height
height (y) of the button (inches)string
text to display centered in the button
set button
command.
ON
. If a user clicks on a button
following a q pos
command, then
the button state will switch from ON (1)
to OFF (0)
.
A second q pos
followed by a mouse
click on the button will return it to the ON
state.
ON/OFF
) may also be set with the redraw
button
command.
set rgb 90 100 100 100 set rgb 91 50 50 50 set rgb 92 200 200 200 set button 2 90 91 92 3 90 91 92 10 draw button 1 2.5 8.0 2.5 0.5 Click Here