Autor Beitrag
LonghornUser
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: So 26.04.09 14:58 
Hallo,

genau das ist meine Frage. Ich habe eine TAction, die ich einmal mit 2 PopupmenuItems verknüpft habe. Nun ist es mir aber wichtig, welche der beiden PopupmenuItems die Action aufgerufen hat.

Ich habe erst daran gedacht, den Sender zu überprüfen, aber leider ist der Sender ja TAction selbst und nicht PopupmenuItem.

Habt ihr eine Idee, wie man das anstellen könnte ?

Ciao LHUser


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am So 26.04.2009 um 17:59
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: So 26.04.09 15:31 
vielleicht im OnClick einen Boolean setzen und hinterher abfragen?
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: So 26.04.09 15:34 
Stimmt, das ist auch ne Idee :) Dachte, es geht etwas eleganter. Aber das löst die Sache natürlich auch.