IWxObject.BeginUpdate

Syntax

BeginUpdate;

Description

The BeginUpdate method disables object rerendering. The method is used to prevent object blinking when changing its properties. All changes, made to an object after executing the BeginUpdate method, are displayed, only after the IWxObject.EndUpdate method is called.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Shape: IWxShape;

Style: IWxStyle;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(0);

Style := Shape.Style;

Style.ShadowBrushForeColor := GxColor.FromName("Red");

Style.ShadowBrushForeTransparent := 50;

Style.ShadowBrushBackColor := GxColor.FromName("Blue");

Style.ShadowBrushBackTransparent := 10;

Style.ShadowBrushPattern := GxBrushPattern.Diagonals;

ws.EndUpdate;

End Sub UserProc;

After executing the example a shadow with the defined settings is displayed for the object.

See also:

IWxObject