TActionManager is a non visual component used to manage and display all actions of a Delphi application. It is defined in the ActnMan.pas unit.
Questions tagged [tactionmanager]
30 questions
10
votes
1 answer
Delphi: How can I add a new category in ActionManager?
I'd like my actions to be organized in categories, but in the "Categories" box, I can't add a new category.
When I click add standard action, it has different categories like "Edit", "Internet",... . Is it even possible to have custom categories or…

Mahm00d
- 3,881
- 8
- 44
- 83
8
votes
2 answers
Is there Delphi's ActionManager alternative in Visual Studio
I am relatively new to VS and C# but have years of experience in Delphi.
One of the my favorite components when designing GUI in Delphi is ActionManager - centralized way to assign event handlers for actions as well as enabling/disabling them.…

koldovsky
- 335
- 1
- 8
7
votes
1 answer
TSpeedButton with TAction - Auto-generated disabled image only considers black
First of all, I already know that when you are implementing a TSpeedButton, when you assign its Glyph, if you do not have more than one glyph, then NumGlyphs should be 1, and when it's disabled, it will automatically use the same image to…

Jerry Dodge
- 26,858
- 31
- 155
- 327
5
votes
2 answers
work around for TActionMainMenuBar painting bug where item is not unselecting
TActionMainMenuBar have a bug with painting root elemetnts without child items.
Using Delphi XE2 / w7-32bit**
how to reproduce:
build menu with TActionMainMenuBar, add some actions to it:
file | options | help
- New
- Open
- Save
…

utmost
- 101
- 4
4
votes
1 answer
how to add Chevron(double arrow) to TActionMainMenuBar if some menu items do not fit horisontally
TActionMainMenuBar does not have this feature.
TActionToolBar adds Chevron automatically, but this menu have some customize commands.
How to add this feature to TActionMainMenuBar and hide customize commands from Chevron menu?
Or maybe emulate…

utmost
- 101
- 4
3
votes
0 answers
TActionMainMenuBar painting bug when VCL Styles are enabled
There is a critical and easy to reproduce bug in TActionMainMenuBar that only happens when VCL Styles are enabled and I wonder if someone has already seen it and found any workaround. I'm using the latest Delphi 10.3.3 Rio (also happens on 10.4.1…

Alexandre M
- 1,146
- 12
- 23
3
votes
1 answer
Shortcut triggers TAction on first created form instead of form with focus
I found (in Delphi 2010) that shortcuts always end up on first form (as owned by main form) that has that action, but not the currently focused form. My TMainFrm owns several TViewFrm. Each has a TActionManager with the same TActons.
I see some ways…

Barry Staes
- 3,890
- 4
- 24
- 30
3
votes
0 answers
Why does TCustomActionBar (and TActionMainMenuBar) clear the ColorMap property every time a CM_SYSFONTCHANGED comes in?
I am assuming that this is a bug I have to work around in TCustomActionBar that forgets about the custom colors maps each time a CM_SYSFONTCHANGED message comes in.
Looking at TCustomActionBar.CMSysFontChanged(var Message: TMessage) it calls…

Warren P
- 65,725
- 40
- 181
- 316
3
votes
1 answer
How do you iterate actions contained in a actionmanager - Delphi 2007
I am using D2007 for a project that has a number of actions in an actionmanager that are then used in actiontoolbars and menus. I have also placed them in categories (eg. File, Tools, Input, etc...). I would like to enable/disable individual…

Gary Mueller
- 122
- 10
3
votes
1 answer
Number of TActionManager components in a project
I've used TActionLists in D7 for many projects, one for each TForm where it seemed relevant. Now, starting a new project i XE2, the users require a Ribbon, which seems to require a TActionManager.
Reading online and the documentation doesn't give me…

Mikkel Andersen
- 33
- 2
3
votes
1 answer
How to obtain all TAction from a TActionManager?
I have a TActionManager in my application, where all the actions are defined. I need to obtain a list of all its actions; currently, using its Actions property I can obtain the "path" for the action (GetNamePath) but I also want to obtain its…

Leonardo Herrera
- 8,388
- 5
- 36
- 66
2
votes
1 answer
How do I programatically add actions to an Action Manager in Delphi 2010
I am trying to dynamically add actionitems, I can add the item and it works when I do this:
HostActionItem := ActionManager.ActionBars[0].Items[0].Items[2];
NewItem := HostAction.Items.Add;
NewItem.Action := MyActionToPerform;
NewItem.Caption…

Leigh S
- 1,837
- 11
- 17
2
votes
1 answer
How to get a shortcut string from TShortCut in an action?
I'm using a TActionManager, where each action has a keyboard ShortCut assigned to it. I would like to display text which represents the keyboard shortcut to the user. For example, F4 or Ctrl+F or Ctrl+Shift+S. However, the TShortCut is defined…

Jerry Dodge
- 26,858
- 31
- 155
- 327
2
votes
1 answer
How to know which control was clicked when sharing an action?
I'm implementing actions (in a TActionManager) for a user interface. Some controls, when clicked, execute the same action. However, in that action handler, I need to know which control was actually clicked by the user. But the Sender is a TAction…

Jerry Dodge
- 26,858
- 31
- 155
- 327
2
votes
1 answer
How do I create ActionBars recursively at runtime?
I am writing a class which will map a large legacy application's TMainMenu hierarchy to TActionMainMenuBar items.
The most important method, which borrows heavily from a EDN CodeCentralC article by Steve Trevethen, looks like this. I apologize for…

Warren P
- 65,725
- 40
- 181
- 316