RectControl.Refresh

From Xojo Documentation

Revision as of 13:08, 18 May 2020 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

RectControl.Refresh([EraseBackground as Boolean])

Supported for all project types and targets.

Repaints the entire contents of the control immediately.


Method

RectControl.Refresh(x As Integer, y As Integer, width As Integer, height As Integer, [EraseBackground as Boolean])

New in 2020r1

Supported for all project types and targets.

Repaints the portion specified of the contents of the control immediately.

If the optional parameter EraseBackground is True, the background will be erased prior to redrawing the control. The default is True.

Notes

Calling this frequently can cause the code executing to slow down. It is often preferable to call RectControl.Invalidate instead.

Sample Code

Refresh the entire area:

Me.Refresh(False)

Refresh a portion of the area:

Me.Refresh(100, 150, 200, 300)