TcxCustomCanvas.MoveWindowOrg(TPoint) Method
Shifts the window origin horizontally and/or vertically.
Declaration
function MoveWindowOrg(const P: TPoint): TPoint; virtual;
Parameters
| Name | Type |
|---|---|
| P | TPoint |
Returns
| Type |
|---|
| TPoint |
Remarks
Call this function and pass a point position as the P parameter to subtract it from the window origin position. The MoveWindowOrg function is useful if you need to scroll the canvas within a window. The function returns the window origin before the move operation, so you can assign the returned value to the WindowOrg property to scroll the canvas back.
See Also