bluedee wrote:
sorry for that....thanks for ur advice. I'll try it.
Actually, the main problem is I want to catch mouse event in my canvas.
There are three possible states:
1. if mouse is clicked in a2dImage object, I will display information
related to image like image path
2. if mouse is clicked in a2dText object, I will display information
about text input
3. if mouse is not clicked inside object, There is no information
displayed.
I click the objects using a2dRecursiveEditTool. I was fail because the
mouse event is interrupted by a2dRecursiveEditTool.
btw, I'm still finding to know the best method to achieve this.
Just a simple tool.
E.g Like
void a2dPropertyTool::OnMouseEvent(wxMouseEvent& event)
When you get a it, you test what kind of object you did hit, and do something
depending on that.
Events are best done via tools, since each tool can handles hits on objects in
different ways.
The active/pushed Tool intercepts all events from the canvas/view first, so the
idea is the same.
Klaas
--
Unclassified
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the sender and delete it.
Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev