Laurent Veilleux wrote:
> Hi
>
> I made my tool to select/move/add/remove pin
> and I would like to modify pin properties when user select them
> Is there onObjectSelectEvent ?? or should I implement my Own event on
> the onMouseEvent
> method of the pin ?
Second try
There is only:
A2D_EVT_CANVASOBJECT_MOUSE_EVENT(
a2dCanvasObject::OnCanvasObjectMouseEvent )
A2D_EVT_CANVASHANDLE_MOUSE_EVENT( a2dCanvasObject::OnHandleEvent )
A2D_EVT_CANVASOBJECT_ENTER_EVENT( a2dCanvasObject::OnEnterObject )
A2D_EVT_CANVASOBJECT_LEAVE_EVENT( a2dCanvasObject::OnLeaveObject )
A2D_EVT_CANVASOBJECT_POPUPMENU_EVENT( a2dCanvasObject::OnPopUpEvent )
A2D_EVT_CHAR( a2dCanvasObject::OnChar )
In the next you can see how a a2dHandleMouseEvent is generated and send to the
parent of the handle.
void a2dHandle::OnCanvasObjectMouseEvent( a2dCanvasObjectMouseEvent& event )
So you should generate your own event, but i wonder when or how a user brings a
pin in select state.
I think the PinTool has this as a feature right? In that case i think you don't
need an event, unless your object handle
the pin properties differently.
Like the wire tool starts a wire when clcicking a pin, while a pintool allows
to change the pin properties on existing pins.
So can we add your pin tool to wxArt2D soon, it looks like a useful tool for us
all?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev