IsPtInFloater method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool IsPtInFloater (int x, int y);

Delphi Syntax

IsPtInFloater (x, y: Integer): Boolean;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Lets you see whether a point in the Main Control's client area is in the floater.

This method is commonly used when the AutoFloater property is False, to test whether the mouse click selects the floater in the OnMouseDown event. The coordinates of the point are relative to the Main Control's client area. The unit of measure is pixels.

A floater is an additional bitmap that is associated with the Main Control. Its common application is to implement the interactive visual aspects of an outline-drag-and-paste operation. You use it to get a copy of the image in the current bitmap region, which the user can drag to another position in the Main Control's client area.

See Also

Elements:

Floater property, FloaterVisible property

Topics:

Raster Images: Copying Images

 

Raster Images: Creating and Using a Region