Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-10

Name mismatches in TControl OnEnabledChange

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans-Peter Diettrich

While other handlers have symmetric Add/Remove methods, this is different for an OnEnabledChanged <--> OnEnableChanging handler:

procedure AddHandlerOnEnabledChanged(const OnEnabledChangedEvent:
TNotifyEvent; AsFirst: boolean = false);
procedure RemoveHandlerOnEnableChanging(const OnEnableChangingEvent:
TNotifyEvent);

What's the correct name of the event:
OnEnabledChanged - matches chtOnEnabledChanged
or
OnEnableChanging - looks incorrect
???

DoDi

Reply by email