Link to home
Start Free TrialLog in
Avatar of TonyJiz
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!
SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TonyJiz
TonyJiz

ASKER

Thnx!
:-)) well, ok, no onClick-event