Vcl.ActnMan.TActionClientsCollection.InternalRethinkHotkeys

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function InternalRethinkHotkeys(ForceRethink: Boolean): Boolean;

C++

bool __fastcall InternalRethinkHotkeys(bool ForceRethink);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ActnMan.pas
Vcl.ActnMan.hpp
Vcl.ActnMan TActionClientsCollection

Description

Adjusts the captions of child items so that every item has an accelerator and there are no duplicate accelerator keys.

TActionClientsCollection calls InternalRethinkHotkeys internally to assign accelerator keys to its child items. This method tries to ensure that all child items have accelerator keys on their captions, and that no two child items have the same accelerator key.

If any of the child items has its own set of child items, and that collection of child items has its AutoHotKeys property set to true, then InternalRethinkHotkeys causes the accelerator keys to be assigned for those items as well.

See Also