Thank you for the detailed explanation. I will try to make my own tool. Hope
this is not much difficult.



-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Klaas Holwerda
Gesendet: Montag, 29. Oktober 2007 17:31
An: wxart2d-users_dev@lists.sourceforge.net
Betreff: Re: [Wxart2d-users_dev] a2dDrawLineTool and some other Questions

SD wrote:

> I get the OnComEvent with the CommandID sm_toolPoped at least if 
> SetEditAndEnd is set and for example the line has been drawn, 
> otherwise no OnComEvent comes. Probably the SetEditAndEnd value Pops 
> and Pushes again the Tool at the end of a line? How looks it if the value
isn't set.

a2dCentralCanvasCommandProcessor do have:

Set/GetPopBeforePush()

This makes a2dCommand_PushTool do a pop before pusing a second tool.
But it depends on your application if you push tool using commands etc.

Using directly m_contr->PushTool(tool) does not bring your there. So in such
cases you must Pop the previous tool yourself.

In case of SetEditAndEnd, that is a build in feature, meaning normally the
editor tools is pushed, without poping anything. And that makes sence, since
it save starting a drawing tool, and next starting an editor tool.
Like it is now the drawing tool stays active, so one can draw many objects
in a row, but still be editing those object directly after being drawn.
SetEditAndEnd = false is also handy to draw many objects in a row, without
editing them in between.

> 
> I have to know  how many lines were drawn while the Line Tool is activ
> (pushed). After the last line i have to calculate the Angle of two lines
> etc. and Pop the tool. Do I have possibilities to do this?

Maybe not directly. But you can derive your own line tool, and do whatever
you want.
Or you can simple copy the line tool, and make it behave the way you want.
If you always need to draw sets of two line and calculate the angle etc. and
next a second set, then i would make a tool 
to do exactly that.
So the tool would draw two lines without pushing the edit tool, and next
calculate the angle, and if wanted start the 
edittool. If the two lines should always be seen as a pair, a special canvas
object might be handy too.

The idea is indeed that one makes tools to do specific actions, i only wrote
the basic ones.

Klaas




-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to