Programmable Drawing Tool
Brought to you by:
wiering
I think it would be cool if you could have a drawing tool,
where you can right-click to bring up a popup menu of
user-defined drawing tool scripts, where each script
could use a system like this:
var
PaintArea: TRect;
procedure DrawingArea_OnMouseDown;
...
procedure DrawingArea_OnMouseMove
...
procedure DrawingArea_OnMouseUp
...
procedure DrawingArea_OnExecute;
begin
//event handler to perform the drawing tool operation
//e. g.
for x := PaintArea.Left to PaintArea.Right do
for y := PaintArea.Top to PaintArea.Bottom do
DrawingArea.Pixel[x,y] := RGB(255,0,0);
end;
It would be excellent to be able to program a custom
drawing tool. You could use DWS for scripting or
something like that.
GrantD@hotpop.com