S snappy Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-17 #1 如何在一图形画布上绘制一虚拟框? 要求:就像在WINDOWS桌面上选框一样, 当拖动S标时虚拟框也跟着改变。
N NoSwing Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-17 #3 for example: mousemove(sender:TObject;X,Y:Integer) begin canvas.pen.mode=pmNotXor; canvas.drawFrame(rect);//the rect is the varaint you have defined rect.bottom=y; rect.right=x; canvass.drawFrame(rect); end;
for example: mousemove(sender:TObject;X,Y:Integer) begin canvas.pen.mode=pmNotXor; canvas.drawFrame(rect);//the rect is the varaint you have defined rect.bottom=y; rect.right=x; canvass.drawFrame(rect); end;