[Lazarus] Control Notification bug?

Juha Manninen juha.manninen62 at gmail.com
Sun Feb 3 12:32:09 CET 2013


My new TCoolBar component uses overridden notification:

  procedure Notification(AComponent: TComponent; Operation:
TOperation); override;

When Operation is opInsert, it adds a band and associates the new
control with it.
It works as expected when a control is dropped on a CoolBar.
However, CoolBar is notified also when a control is dropped anywhere
on the same form. I believe it is a bug, it should not happen.

I solved the problem by checking if the control's parent = Self.

Juha




More information about the Lazarus mailing list