Yesid Hernandez wrote: > Hi, > > My idea is to get a Frame when a double click event is generate in the > a2dCanvasObject child, the application is kind of the wires samples. > > I was looking in the a2dCanvasObjectMouseEvent class, canglob.h you need to search better ;-)
> and didn't find > anything like this, I did see a POPUPMENU_EVENT but didn't worked on > code for me. > The next i took from canobj.cpp A2D_BEGIN_EVENT_TABLE(a2dCanvasObject,a2dEvtHandler) A2D_EVT_CANVASOBJECT_MOUSE_EVENT( a2dCanvasObject::OnCanvasObjectMouseEvent ) So you have to do something like this for a derived canvasobject. like that is done in elements.cpp for example, but there or many others. It is like event tables in wxWidgets. > What I'm trying to do is the following: Add the event to the Element > class, and the set a wxMessageBox on this event. The project compiles > but no event is generate in the object (Resistor, Capacitor, etc...) > Oke, search and study a bit more, its all possible, and there are samples enough i think. regards, Klaas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev