GxImage: SetWindowRect

SetWindowRect

This method sets the drawable area in one step.



 Public Function SetWindowRect(
	  ByVal left As Long,
	  ByVal top As Long,
	  ByVal right As Long,
	  ByVal bottom As Long ) As Long

Parameters

left
The left side (WndLeft) of the drawable area of the image when the view mode is vmPart.
top
The top side (WndTop) of the drawable area of the image when the view mode is vmPart.
right
The right side (WndRight) of the drawable area of the image when the view mode is vmPart.
bottom
The bottom side (WndBottom) of the drawable area of the image when the view mode is vmPart.

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function SetWindowRect(ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long) As Long

[Delphi] function SetWindowRect(left : Integer; top : Integer; right : Integer; bottom : Integer) : Integer;

[C++] long SetWindowRect(long left, long top, long right, long bottom);

Remarks

In case of changing the drawable area properties the control redraws the image at each modification. This method sets all four coordinates and redraws the image only once.
This is a display control method.

See Also

Class GxImage Overview GxImage Properties GxImage Methods SetIntProperty SetZoomPos