Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomCanvas.MoveWindowOrg(TPoint) Method

Shifts the window origin horizontally and/or vertically.

#Declaration

Delphi
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