Skip to main content

TdxBarManager.AllowCallFromAnotherForm Property

Enables a user to activate items of the main application form when another application form is focused.

Declaration

property AllowCallFromAnotherForm: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

The AllowCallFromAnotherForm property specifies whether items of the main application form can be activated when another form of the same application has focus. If the value of the property is set to True, the current bar manager of the main form tracks shortcut press events in different forms of the current application.

The bar manager of the main form processes shortcut keys executed from another form if:

  • the form is a MDI child form and incorporates either a main menu or a bar manager

or

  • the form is neither a MDI Parent nor a MDI Child form and does not contain a bar manager.

Use the AllowCallFromAnotherForm property when developing MDI applications to avoid using duplicate code and centralized shortcut processing.

Handle the bar manager’s OnHandleKey event to prevent the bar manager from handling certain shortcuts.

The default value of the AllowCallFromAnotherForm property is False.

See Also