draw button
draw button number xpos ypos width height string
Draws a button centered on xpos,ypos
with the
following attributes:
number
button number, 1 - 512
xpos
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
Usage Notes
-
Button colors are specified with the
set button
command.
-
A button's initial state is
ON
. If a user clicks on a button following aq pos
command, then the button state will switch fromON (1)
toOFF (0)
. A secondq pos
followed by a mouse click on the button will return it to theON
state.
-
The button "state" (i.e.
ON/OFF
) may also be set with theredraw button
command.
- See the section of the User's Guide on widgets for more information on using buttons.
Example
set rgb 90 100 100 100set rgb 91 50 50 50set button 2 90 91 92 3 90 91 92 10set rgb 92 200 200 200draw button 1 2.5 8.0 2.5 0.5 Click Here