TMlLikeMenuDlg

Makes a form behave like a menu: it closes as soon as the user clicks outside it.

Category
Dialogs & misc
Unit
uMlLikeMenuDlg.pas
Inherits from
TComponent

Notes

  • Use it to turn an ordinary form into a dropdown panel or a custom popup menu.
  • With AnyClickCancel on, any click closes it; clicking outside also fires OnMouseClickOutside.

Properties 2

NameTypeDefaultDescription
AboutTMlAboutInfoA design-time property: double-clicking it in the Object Inspector opens the MLSkin about box with the component version. It has no effect at run time and is not stored in the .dfm.
AnyClickCancelBooleanFalseCloses the form on any click; with it off only clicks outside the form close it.

Events 1

NameTypeDefaultDescription
OnMouseClickOutsideTNotifyEventFires when the user clicks outside the form, so you can act before it closes.

Only the properties and events MLSkin adds are listed here. Standard VCL properties such as Align, Anchors, Font and OnClick are available too and behave exactly as on the stock controls.

Offline helpA PDF / CHM version is available for offline reading.