TonyJiz
asked on
One event for multiple shapes.
Hey,
I want to have one event for all shapes on a form. All shapes are already added to the form.
I want that if you click on the shape that it will turn red and that it will turn white if it already is red.
Ofcourse this would be easy if you just go to each OnMouseDown of every shape but I just want one OnMouseDown event for all the shapes, so that event should be able to recognize what shape was being clicked on.
Thnx!
I want to have one event for all shapes on a form. All shapes are already added to the form.
I want that if you click on the shape that it will turn red and that it will turn white if it already is red.
Ofcourse this would be easy if you just go to each OnMouseDown of every shape but I just want one OnMouseDown event for all the shapes, so that event should be able to recognize what shape was being clicked on.
Thnx!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)) well, ok, no onClick-event
ASKER