SetFloaterDstClipRect method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetFloaterDstClipRect (int iLeft, int iTop, int iWidth, int iHeight);

Delphi Syntax

SetFloaterDstClipRect (iLeft, iTop, iWidth, iHeight: Integer): Integer;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Sets the destination clipping rectangle that is used when painting a floater.

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.

If the AutoSetRects property is set to True, the clipping rectangle defaults to the full client area of the Main Control. Therefore, you do not have to set this rectangle unless you want to display only part of the floater.

To position and scale the floater, refer to the SetFloaterDstRect method.

See Also

Elements:

SetFloaterDstRect method

Topics:

Raster Images: Copying Images

 

Raster Images: Creating and Using a Region