TLayerCollection.MouseListener

property MouseListener: TCustomLayer;

Description

Indicates the layer which has captured mouse messages. By default, the layer captures mouse if the left mouse button is pressed and releases it when the mouse button is released.

Note, that since layers have nothing to do with windowed controls, this property is just a simulation of standard mouse capturing. Windows still 'thinks' that the mouse is captured to the owner of the layer collection (TCustomImage32), which in turn redirects mouse messages to an appropriate layer.

See Also

Using Layers, TCustomImage32, TCustomLayer