Autor Beitrag
ggehrma
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111

WinXP
D2005 Pers.
BeitragVerfasst: Fr 09.09.05 14:16 
Hallo,

ich habe auf meinem Formular mehrere dynamisch erzeugte Labels, die alle ein gemeinsames PopupMenu haben. Meine Frage ist jetzt, wie kann ich bei den Prozeduren des Popupmenu-Punkte herausfinden, welches Label "gepopupt" wurde?

mfg, ggehrma.

_________________
"...To boldly go where no one has gone before."
s-off
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 35

WinXP
D7 Prof
BeitragVerfasst: Fr 09.09.05 14:22 
huhu,

stichwort Sender und Parent

_________________
greetz
s-off
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 09.09.05 14:39 
Hallo,

mit Sender und Parent :?

Im OnPopup-Ereignis des Popup-Menüs:
ausblenden Delphi-Quelltext
1:
showmessage(PopupMenu1.PopupComponent.Name);					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
s-off
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 35

WinXP
D7 Prof
BeitragVerfasst: Fr 09.09.05 14:44 
warum kompliziert, wenn es auch einfach geht ^^

ist mir ehrlich gesagt neu gewesen :) man lernt nie aus!

_________________
greetz
s-off
ggehrma Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111

WinXP
D2005 Pers.
BeitragVerfasst: Fr 09.09.05 14:48 
Super, funktioniert.

Danke.

_________________
"...To boldly go where no one has gone before."