SetFloaterDstRect method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short SetFloaterDstRect (float fLeft, float fTop, float fWidth, float fHeight);

Overview:  Refer to Creating and Using a Bitmap Region.

Remarks

Positions and sizes the display of the floater by setting destination rectangle.

This method is commonly used in the MouseMove event to reposition the floater in the client area. If the floater is visible, its region is automatically repainted when you set the destination rectangle. If the AutoSetRects property is set to True, the destination rectangle defaults to the size of the floater bitmap. Therefore, you must use this method to set the destination rectangle to the desired position.

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:  SetFloaterDstClipRect method

Topics:  Raster Images: Copying Images
Raster Images: Creating and Using a Region