[archived content]

Control.invalidate method

public void invalidate()
public void invalidate(bool andChildren)
public void invalidate(Rect r)
public void invalidate(Rect r, bool andChildren)
public void invalidate(Region rgn)
public void invalidate(Region rgn, bool andChildren)

Adds to the Control's update region which triggers the paint event. If andChildren is true, child controls that intersect will also be included.

The Control is not immediately updated, this allows multiple invalidate calls to merge into one paint action. It is usually not necessary, but calling method update causes the paint event to be immediately triggered if there is an update region.

See also: paint?, update?

Page last modified on May 07, 2007, at 11:19 AM