Questions tagged [taction]

taction is a generic action VCL component. It implements user commands across a range of different controls. It is defined in ActnList.pas unit.

42 questions
1
vote
2 answers

From TCheckListBox to TcxCheckListBox with an exception?

I use this code with TCheckListbox (lbServices) and it works fine. But with TcxCheckListBox from Devexpress it raise exception. procedure TMaintenanceForm.AfterConstruction; var i: Integer; ActionObj: TAction; begin inherited; for i := 0 to…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
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

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

FMX how to cast Tbutton and assigning it with Tag in TAction / TActionList?

I have TButton(s) associated to the same action TAction and When they are clicked, the action execute method declared. Now i want to cast the Sender parameter in the actions OnExecute/OnUpdate instruction to show which Button was clicked. what i did…
0
votes
0 answers

how do I override a standard action

I have a situation where I need to change the standard popup menu items/actions for cut/copy/paste. Complicated, but basically, the local clipboard isn't available, so I need to somehow mimic the right click popup menu. I figured the best ways to do…
0
votes
0 answers

FMX - TAction OnUpdate doesn't work

I have an FMX form that contains a button and a TActionList with a TAction 'Action1'. Action1 has an Execute procedure and an Update procedure, and the property 'Action' of the button is set to Action1. If I run the application on windows, it enters…
Federico Pessina
  • 199
  • 1
  • 4
  • 15
0
votes
1 answer

Delphi default dataset action Tdatasetdelete

One of the wonderful things of Delphi is a TActionlist. Even better are default TActions like TDataset-actions. I have one form with several simple tables. So I let Delphi decide which datasource/table is active with several…
0
votes
1 answer

How to cast to TMenuItem in TActions Execute method?

I have a number of related TMenuItems, in a CodeGear C++ VCL application. Each TMenuItem is associated to the same action (TAction). When a MenuItem is clicked, the action fires (its execute method that is). I will need to, somehow, cast the…
Totte Karlsson
  • 1,261
  • 1
  • 20
  • 55
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
votes
1 answer

toolbutton with action created at runtime

I create with Delphi 2009 Toolbuttons in a toolbar like it is desribed here: Create TToolbutton runtime The difference is that I assign an action also at runtime. My code is as follows: Function TSymbolVisWin.MakeButton(BCnt:integer;…
Christine Ross
  • 465
  • 5
  • 14
-5
votes
1 answer

How to avoid repeating execution of TAction.Shortcut?

In Delphi 10.1.2, inside a TActionList I have created a TAction with these properties and assigned a shortcut Ctrl+F12 to it: At runtime, when I keep the shortcut keys Ctrl+F12 pressed, the action is executed repeatedly (with speed depending on the…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1 2
3