DECLARE SUB can_mousedown(butt AS INTEGER,x AS INTEGER,y AS INTEGER,sh AS INTEGER)
CREATE form AS QFORM
center
COLOR= 0
CREATE canvas AS QCANVAS
onmousedown=can_mousedown
width = form.clientwidth
height = form.clientheight
END CREATE
END CREATE
form.SHOWMODAL
SUB can_mousedown(butt AS INTEGER,x AS INTEGER,y AS INTEGER,sh AS INTEGER)
canvas.fillrect(x-10,y-10,x+10,y+10,&h00ff00)
END SUB
|