BB___SET

=SET= toc =Graphics Method=

Description
> In a graphics window or graphicbox, SET draws a point at x, y using the current pen color and size.

Syntax
//This command is NOT case sensitive//. Using literal values: Using variable values: > x, y are horiz and vert coords from upper left corner of window.
 * 1)  - a graphics window
 * 2)  - a graphicbox

Hints
Top left corner is (0, 0).

Here is a list of commands that affect the pen position or status: down go goto home north place posxy set size turn up

Example
An example of the command in a graphics window. code format="lb" nomainwin WindowWidth=400 WindowHeight=300

open "Command Demo" for graphics_nsb_nf as #g #g "trapclose [quit]"

'put pen down #g "down" 'set pen size and color #g "size 8; color blue" #g "set 195 140" wait

[quit] close #g end code

An example of the command in a graphicbox using variable values. code format="lb" nomainwin WindowWidth=400 WindowHeight=300

graphicbox #g.gb 2, 2, 390, 270 open "Command Demo" for graphics_nsb_nf as #g #g "trapclose [quit]"

'put pen down #g.gb "down" 'set pen size and color #g.gb "size 5; color red" #g.gb "set "; WindowWidth/2; " "; WindowHeight/2 wait

[quit] close #g end code

Useful Functions
code format="lb" Place a useful function using this keyword here code

=Check Box and Radio Button Method=

Description
> Controls that allow a user to make a choice are said to be "set" or "reset". Setting a control causes that option to be selected and active.

Hints
> When a user clicks on a control, its state changes to its opposite state. (From set to reset, or from reset to set).

Example
See CHECKBOX and RADIOBUTTON.

Useful Functions
code format="lb" Place a useful function using this keyword here code