diff --git a/lcl/menus.pp b/lcl/menus.pp index 5967bf140b..8c8b8f49a4 100644 --- a/lcl/menus.pp +++ b/lcl/menus.pp @@ -249,7 +249,7 @@ type AsFirst: boolean = false); procedure RemoveHandlerOnDestroy(const OnDestroyEvent: TNotifyEvent); procedure AddHandler(HandlerType: TMenuItemHandlerType; - const AMethod: TMethod; AsFirst: boolean); + const AMethod: TMethod; AsFirst: boolean = false); procedure RemoveHandler(HandlerType: TMenuItemHandlerType; const AMethod: TMethod); public