On 11/09/2010 09:44 AM, SD wrote: > > I will use the drag tool. Even without any tool this should work. But the you need to do something as in editor/tuto example MyCircle or just a simple a2dCanvasObject derived something, where the mouse move would be treated different.
I can not remember why i out commented the skip at the end of the dragtool. In any case if you disable/outcomment the toolcontroller and dragtool, in tuto example, all events arrive in a2dCanvasObject or derived is intercepted (like in MyCircle). > I've tried something like that and it worked. > Ist that OK or are there any better way to get the prop unvisible while > dragging?' Many ways to Rome, it depends on the situation. IF you want to use all available tools, and have tips on objects at the same time, it might be best to do it at a high level (toolcontroller). If you only use specialized canvasobject as in the tuto sample with MyCircle, you have more freedom. Because you can handle it there also. But i think you get the idea, independent where you set it invisible. > > > // Mauskoordinate > double mx = event.GetX(); > double my = event.GetY(); > > // Maus ueber einem Objekt > a2dCanvasObject *capt_obj = GetCanvasView()->IsHitWorld (mx, my); > if (capt_obj != NULL) > { > props = a2dCanvasObject::PROPID_Objecttip->GetPropertyListOnly > (capt_obj); > if (props) > { > props->SetVisible (false); > capt_obj->SetPending (true); > } > } > ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev