Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Popup für mehrere TEdits (https://www.delphipraxis.net/176004-popup-fuer-mehrere-tedits.html)

torud 6. Aug 2013 10:06

Popup für mehrere TEdits
 
Hallo Wissende,

ich habe mehreren TEdits EIN Popup-Menü zugewiesen, und möchte einfach nur, dass die Caption des gewählten MenuItems in das Edit geschrieben wird, von wo aus das Popup-Menü aufgerufen wurde.

Mit statischen Controls (1 Edit und 1 Popup) geht das ohne weiteres:

Delphi-Quellcode:
Edit1.Text := StripHotkey((Sender as TMenuItem).Caption);
Aber wie kann ich herausbekommen, von welchem Edit das Popup aufgerufen wurde, wenn ich das Popup an mehere Eingabefelder gebunden habe???
Klingt irgendwie total simple, aber ich konnte dazu nix finden im www.

uligerhardt 6. Aug 2013 10:22

AW: Popup für mehrere TEdits
 
WIMRE hat das PopupMenu eine Eigenschaft PopupComponent o.ä. Das dürfte dein Kandidat sein.

Sir Rufo 6. Aug 2013 10:26

AW: Popup für mehrere TEdits
 
Delphi-Referenz durchsuchenTPopupMenu.PopupComponent

torud 6. Aug 2013 12:44

AW: Popup für mehrere TEdits
 
Cool, danke für die schnelle Hilfe!


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:59 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz