DesktopUIControl.Refresh

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopUIControl.Refresh([immediately as Boolean = False])

New in 2021r3

Supported for all project types and targets.

Redraws the entire contents of the control the next time the OS redraws the control or immediately if True is passed.


Method

DesktopUIControl.Refresh(x As Integer, y As Integer, width As Integer, height As Integer, [immediately as Boolean = False])

New in 2021r3

Supported for all project types and targets.

Redraws the portion specified of the contents of the control the next time the OS redraws the control or immediately if True is passed.

Notes

If you are calling this so frequently that you experience a slowdown in your code, pass True for the immediately parameter.

Calling this method causes the Render event to fire.

Sample Code

Refresh the entire area immediately:

Me.Refresh(True)

Refresh a portion of the area the next time the OS redraws the control:

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