SD wrote: > Hi, > > 1) > I have a problem with the a2dDrawLineTool. I get an assertion error after > putting the first Point of the line, if i set for the SetTopTool everything > else than a2dRecursiveEditTool. > > Error in liner.cpp > line 347. Message: Expression = 0 > line 355. Message: Expression: line != 0 > > For the first point of the line the value for m_valid_parameters = false. > > For Example: > m_toolctrl = new a2dStToolContr(m_canvas->GetCanvasView(), this); > m_toolctrl->SetTopTool( new a2dDragTool( m_toolctrl ));
The vdraws sample does have the same problem, will look into it. Its a bug. > > 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. > > 3) > And finally a small problem :-) > How can i change the Cursor for the TopTool at the begin? You can define your own top tools and set its cursors, or not? void SetCursorType(const wxCursor& cursor) { m_toolcursor = cursor; } void SetBusyCursorType(const wxCursor& cursor) { m_toolBusyCursor = cursor; } Regards, 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