Hello,
I am a longtime VW user but have not done very much with VS so far.
I am trying to make a Tool, to put in a palette (and eventually give it a keyboard shortcut), of a little custom script that I've used for years in a script palette (but has always of course lacked keyboard shortcuts). The little script, when double-clicked, quickly changes the pen colour, weight, etc. I have a few of these scripts for when I'm not drawing in a Class.
Here's an example of one of these scripts:
-------------
Procedure CustTool;
VAR
Name:STRING;
Result:BOOLEAN;
BEGIN
FillFore(255);
PenFore(213);
PenSize(79);
END;
Run(CustTool);
-------------
This script has worked well for any line, circle, polygon, etc. However, when I made a Tool using this script (and put it in a palette and such), clicking on that tool doesn't have the same effect. The Tool button can be pressed, but then when I choose to draw a line, circle, etc the pen colour, size are not what the script should have told them to be (basically, they don't change as they are supposed to).
So, am I trying to do something that isn't possible (that is, asking a tool script to only set pen colour, size etc without telling it to also draw a line, circle, polygon, etc)?
Or am I just missing a bit of script that will do what I am looking to do?
Thanks,
-Neil