delphisortingidedelphi-xetactionlist

Can actions in TActionList be sorted in Delphi XE IDE?


When the number of actions in DXE IDE grows, in a single actionlist, it quickly becomes hard to locate the action you want to inspect or change.

There is no search / filter box like there is for components, and actions are not automatically sorted. Sorting action declarations in code does not alter the order in which they are displayed in the actionlist editor.

Not even incremental search works: if you focus the actionlist pane and start typing, the keypresses go to the object inspector (and you inadvertently change some property or other). Major annoyance!

Is there perhaps a hidden setting, a registry hack (there are quite a few for Delphi), or maybe a third-party extension that would keep actions sorted?


Solution

  • You could sort them in the dfm file. You would want to write a little utility script to do it.

    Or a workaround would be to use categories to make the list of actions more manageable.