how do i draw

1) shapes at runtime
2) lines at runtime

i tried drawing shapes using this code, but still not so nice.

cmd1_click()
load shape1(num)
shape1(num) properties set here
end

but this is not satisfactory

and until now i still dono how 2 draw a line at runtime

can help plz? thx

help much appreciated