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

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to