Questions tagged [tactionmanager]

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.

30 questions
1
vote
1 answer

How to add Submenus to TActionMainMenuBar programatically?

I have been developing a VCL program and am adding code for placing a 'Recent Files' dropdown submenu listing a group of files. For this program I have populated a tActionManager and a tActionMainMenuBar. I have created similar menus before using…
Ashlar
  • 636
  • 1
  • 10
  • 25
1
vote
1 answer

Button glyphs not updated when action's image changes

I'm using an Action Manager, and I have some buttons associated with some of those actions. The glyphs of those buttons are automatically assigned the corresponding images from the action manager's image list. However, if I go and change the Image…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
1
vote
1 answer

How to set the selective captions for TActionToolbar?

I have a TActionToolbar...But there's one "feature" I can't quite figure out how to control. From the customize dialog (Vcl.CustomizeDlg.TCustomizeDlg) for a TActionToolbar. Note the caption options listbox: So how exactly do you use selective…
Jessica Brown
  • 8,222
  • 7
  • 46
  • 82
1
vote
0 answers

How to get TActionMainMenuBar drop down items to scroll when there are too many items to show

Does anyone know how to get a TActionMainMenuBar with TThemedPopupMenu to act like the standard menus, in that if there is too many items to fit on the screen (vertically), two scroll buttons appear (one top, one bottom)? I have tried: Setting…
Nicholas Ring
  • 1,016
  • 7
  • 14
1
vote
1 answer

Delphi 2009 Actionmanager default Imagelist

I have just started a new project, and I am using the Delphi 2009 Actionmanager component for the first time. The Actionmanager has a list of standard actions, which gives me actions such as File open / save without any coding - great stuff. Is…
HMcG
  • 2,062
  • 4
  • 24
  • 36
1
vote
1 answer

Delphi TActionMainenuBar - 2nd-level submenu menu item is disabled

With Delphi XE5 I am converting a TMainMenu to a TActionMainMenuBar but I am having issues with a submenu node within a category being disabled at runtime, for example in my 'File' category. Most 'File' category items are actions dragged over from…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
1
vote
1 answer

ActionMainMenuBar - Menu item not updating its disabled status after manually adding action items

Using: Delphi XE2, 32-bit Windows VCL forms application In an ActionManager, I've added an action and assigned the category name. Then I drag and drop the category from the ActionManager onto the ActionMainMenuBar on the form. I did this to create…
Steve F
  • 1,527
  • 1
  • 29
  • 55
1
vote
3 answers

How to disable menu, sub-menu in ActionMainMenuBar?

Using: Delphi XE3, VCL Forms application I have a menu containing a sub-menu in a ActionMainMenuBar. How can I via code: disable the menu disable the sub-menu
Steve F
  • 1,527
  • 1
  • 29
  • 55
1
vote
1 answer

Keyboard shortcuts not caught when Action Manager is in Data Module?

In Delphi XE2, I have a Data Module in my Application, and an Action Manager inside that Data Module. I've assigned Keyboard Shortcuts to each action, but when I try to use these shortcuts in the app, it does not catch them. I'm creating the data…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
1
vote
1 answer

TActionManager in MDI application. Losing actions

I have a MDI application and I'm using TActionManager to manage actions within my application which also means that it contains the actions for my MDIChild forms. Here's an simple exemple to recreate my problem: Create a new VCL Forms applications…
CharleyXIV
  • 1,590
  • 3
  • 13
  • 24
0
votes
0 answers

How do you add an edit control to the TActionToolbar?

I'm new to C++ Builder and I'd like to offer a filter option on the TActionToolbar where a user could enter the text to be filtered for (and perhaps a button next to it to enable/disable the filter). How do you add that type of edit control /…
user3161924
  • 1,849
  • 18
  • 33
0
votes
1 answer

How to add OnClick event on main menu (=Category, via TAction submenu) on ActionMainMenuBar?

I'm replacing my good old TMainMenu with TActionMainMenuBar but have some issues with it. I'm currently using for my main menu items the 'OnClick' handler, but I can't find a way to reproduce the same behavior with TActionMainMenuBar. For example, I…
Gunter
  • 3
  • 3
0
votes
0 answers

ShortCut key does not appear with an action of actionmanager in delphi

I try to use actionmanager in delphi7, it is almost OK, unless I need to make the caption of the action1 to be included with the shortcut key, for example: Action1 CTRL+D what i need exactly when I assign to the action item a shortcut, I want it…
Marwan Almukh
  • 201
  • 3
  • 12
0
votes
4 answers

How can I disable all components in a non-modal form?

Scenario: a TActionManager, a TAction, and a TButton (associated with this action) ActionManager constantly enables the Action in its OnUpdate event handler the code in the action event handler launches an external program using a ShellExecAndWait…
mjn
  • 36,362
  • 28
  • 176
  • 378
0
votes
1 answer

How to assign TAction to toolbar button at runtime?

I add toolbar buttons dynamically based on settings file. I would like to assign TAction to them. For now I added OnClick event with action OnExecute handler but if action is disabled, then toolbar button is not disabled automatically like for…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1
2