Laurent Veilleux wrote: > Hi > Is there a way to detect that the active tool of a toolControler has > changed ?? >
bool a2dToolContr::PushTool(a2dBaseTool* handler) emits a2dBaseTool::sm_toolBeforePush and a2dBaseTool::sm_toolPushed, they are sent to the old and new tool. a2dToolContr::PopTool also sents events. Now to get those events in a central place a2dStToolEvtHandler is used, you can derive. The trick is that tools do have an eventhandler extra, which if set, redirect events from tolls to a central event handler. Study the next two: a2dStToolEvtHandler::OnDoEvent a2dStToolEvtHandler::OnComEvent I think in your case, if you use commands to push a tool, you can intercept the push and pop command, or else use the OnComEvent. > About Tool I have noticed a bug with edit tool, I can't edit one > object then edit another one without selecting the select tool between > the two edition > I i edit one object then directly try to edit another one , the second > one can't be edited > Will check, maybe there is a bug. Tsjau from Brazil, hope this works now. Klaas ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
