Hallo Freunde,
folgendes Problem ich habe mehrere asymmetrische Flächen - Polygonen - auf die ich Daten ziehen möchte. Sprich Drag'n'Drop.
Derzeit zeichne ich die Polygone mittels GDI +. Drag'n'Drop bietet natürlich nur die Zeichen-Fläche des Plygons - ein Panel.
Wie finde ich nun aber heraus, ob sich der Mauszeiger innerhalb des jeweiligen Ploygons befindet?
Ich möchte je nach dem, innerhalb welches Polygons die Maustaste losgelassen wird, einen Wert (z. B. einen Index) zurückbekommen, damit ich dies im Programm weiterverarbeiten kann.
Ich hab da mal eine Grafik in der Anlage, die das verdeutlichen soll.
Vielleicht könnt Ihm mir helfen oder einen Tipp geben, wie ich das anders lösen könnte.
Besten Dank!
VDL
folgendes Problem ich habe mehrere asymmetrische Flächen - Polygonen - auf die ich Daten ziehen möchte. Sprich Drag'n'Drop.
Derzeit zeichne ich die Polygone mittels GDI +. Drag'n'Drop bietet natürlich nur die Zeichen-Fläche des Plygons - ein Panel.
Wie finde ich nun aber heraus, ob sich der Mauszeiger innerhalb des jeweiligen Ploygons befindet?
Ich möchte je nach dem, innerhalb welches Polygons die Maustaste losgelassen wird, einen Wert (z. B. einen Index) zurückbekommen, damit ich dies im Programm weiterverarbeiten kann.
Ich hab da mal eine Grafik in der Anlage, die das verdeutlichen soll.
Vielleicht könnt Ihm mir helfen oder einen Tipp geben, wie ich das anders lösen könnte.
Besten Dank!
VDL