> > 2) > Another Problem with the event a2dStTool::sm_toolPoped in > > void MyStToolEvtHandler::OnComEvent(a2dComEvent &event) > { > if (event.GetEventComId() == &a2dStTool::sm_toolPushed) > { > wxMessageBox ("sm_toolPushed"); > } > if (event.GetEventComId() == &a2dStTool::sm_toolPoped ) > { > wxMessageBox ("sm_toolPoped"); > } > } > > I dont get an OnComEvent for the sm_toolPoped. sm_toolPushed and > sm_toolComEventAddObject works fine.
>So if you set breakpoints in sttool.cpp on every sm_toolPoped interceptions, and next run vdraws sample, it does not stop? >Here it does, so i think you never Pop any tool?? >In tools.cpp put on a2dComEvent event( GetFirstTool(), poped, &a2dBaseTool::sm_toolPoped ) a breakpoint. >Be aware that pushing a tool does not mean automatically popping the last tool first. Often the tool is pushed leaving other tools intact on the stack. 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. 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? ------------------------------------------------------------------------- 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