DocumentationMQL5 ReferenceStandard LibraryPanels and DialogsCWndOnActivateOnActivateOnActivateThe virtual handler of the internal “Activate” event.virtual bool OnActivate()Return Value true - event processed, otherwise - false.Note The base class method does nothing and always returns true.Last updated on 2026-07-24OnHideOnDeactivate