taction Questions

8

Solved

When a TAction event fires, the "Sender" is always the action itself. Usually that's the most useful, but is it somehow possible to find out who triggered the action's OnExecute event? Example Le...
Bragg asked 21/7, 2010 at 18:57

4

In Delphi XE7, I use this trick to automatically enable or disable a toolbar button ("Edit ListView Item") according to whether an item in the ListView is selected or not, to prevent the user to cl...
Durgy asked 1/3, 2015 at 10:57

3

Solved

I have a TAction that is used for both a menu item and a TButton. I want the menu item to show the label, and the TButton to show only the icon. However, when an Action is assigned, Vcl automatical...
Marciamarciano asked 11/12, 2012 at 8:35

1

Solved

Normally one could change the font of a TActionMainMenuBar or TMainMenu like this: Screen.MenuFont.Name := 'Calibri'; When using Vcl styles this isn't possible any more if a StyleHook is regist...
Tyner asked 31/10, 2012 at 9:11

3

Solved

What do I need to do for adding actions support to my component. It is a button component but I guess it is the same for whatever component type it is. Any information or how to will help.
Weltpolitik asked 24/7, 2011 at 10:11

2

Solved

I want to have a shortcut key combination (like Ctrl+Alt+D) in my app to invoke a function, but I don't want the shortcut to appear on any menu. Is it possible to have a shortcut available in your ...
Stannum asked 25/7, 2010 at 20:44
1

© 2022 - 2024 — McMap. All rights reserved.