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/)
-   -   Delphi Probleme mit ActionList (TAction enabled) (https://www.delphipraxis.net/18559-probleme-mit-actionlist-taction-enabled.html)

SiouX 20. Mär 2004 22:55


Probleme mit ActionList (TAction enabled)
 
Hi,

langsam verzweifle ich an der ActionList. Ich füge normal eine Action hinzu, verknüpfe es mit einem TMenuItem und setze "enabled" auf "true". Aber wenn ich das Programm compiliere, dann ist der jeweilige Menüpunkt immernoch nicht anklickbar .... Hab ich da was übersehen? :gruebel:

Dankbar für Hilfe

Siox

Robert_G 20. Mär 2004 23:01

Re: Probleme mit ActionList (TAction enabled)
 
Du hast dem OnExecute Event nichts zugewiesen!
Wenn der leer ist, ist die Action nicht aktiviert.

SiouX 20. Mär 2004 23:16

Re: Probleme mit ActionList (TAction enabled)
 
Danke! Das klappt jetzt bei normalen TAction :-D :thuimb: !
Bei vordefinierten Actions wie "TWindowClose" weigert er sich immernoch.. da noch ein Tipp?

Robert_G 20. Mär 2004 23:21

Re: Probleme mit ActionList (TAction enabled)
 
Wenn du einer StandardAction ein OnExecute zuweist, geht ihre eigentliche Funktion verloren.
Die StandardActions aktivieren sich autom. abhängig von der Umgebung.
WindowClose zum Beispiel funktioniert nur in MDI-Apps und ist dann aktiv wenn es ein geöffnetes MDIChild gibt.

SiouX 20. Mär 2004 23:31

Re: Probleme mit ActionList (TAction enabled)
 
Danke Robert!!
Du hast mir gerade weitere 1 Stunde Kopfschmerzen erspart :hello: .


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:29 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