Great, got that working, thank you.
Now I need to figure out how to access the brush for the PencilTool. Here's what I've tried:
coll := FInst.ActiveDocView.Obj.Children;
for i := 0 to Pred(FInst.ActiveDocView.Obj.Children.Count) do
if Assigned(FInst.ActiveDocView.Obj.Children.Item[i]) then
but this really doesn't seem to give me access, even thought I'm activating the PencilTool this way:
I thought that maybe, just maybe, since the owner of the PencilTool is the ActiveDocView.Obj, perhaps the PencilTool would show up as a child to the .obj... I do find one child of the .obj, but I can't get any class info from it.
Also, in the COM interface wrapper, there is no interface to a 'PencilTool'. I did find a pen, however, but can't seem to activate it.
I need to change the color of the PencilTool's brush, as well as the width. How do I do this?