K
Kristian Frost
Hi,
I'm trying to add, as you might guess, mouseclick listeners to the shapes
I am drawing using the GDI+ commands in a similar sort of way as could be
done with the old VB "shapes".
Problem is, I'm really not sure of the best way to go about it.
I was hoping I could do it directly like the old shape_onclick events, but
that doesn't seem to be available for GDIs so maybe I could hack something
together using collections of GDI objects and checking to see if
mouseclick events occurred within the boundaries of the shapes stored in
the collection...
I'm not sure how that would work with irregular shapes such as curved
lines, among other problems.
Any advice you could give on this topic would be gratefully received.
New, less-fiddly-to-code directions to follow would also be appreciated.
KF
I'm trying to add, as you might guess, mouseclick listeners to the shapes
I am drawing using the GDI+ commands in a similar sort of way as could be
done with the old VB "shapes".
Problem is, I'm really not sure of the best way to go about it.
I was hoping I could do it directly like the old shape_onclick events, but
that doesn't seem to be available for GDIs so maybe I could hack something
together using collections of GDI objects and checking to see if
mouseclick events occurred within the boundaries of the shapes stored in
the collection...
I'm not sure how that would work with irregular shapes such as curved
lines, among other problems.
Any advice you could give on this topic would be gratefully received.
New, less-fiddly-to-code directions to follow would also be appreciated.
KF