All Cadcorp SIS API Methods

Redraw Method

Description

Redraws a window, or windows.

Syntax

Visual Basic
Public Function Redraw( _
   ByVal redrawcode As Integer _
) As Integer

Parameters

redrawcode
SIS_CURRENTWINDOW    Redraw the current window only.
SIS_CURRENTSWD    Redraw all windows which contain the current SWD.
SIS_ALLWINDOWS    Redraw all windows.
SIS_QUICK_REDRAW    Optional flag which makes Map windows blit their cached bitmap, instead of doing a full "regen". For instance, use
(SIS_CURRENTSWD+SIS_QUICK_REDRAW) after moving Items in the Named List "*Sprites".

Remarks

Available: D OD OM OV

Group:

Example

Example 1:

sis.Redraw (SIS_CURRENTWINDOW)

Example 1 redraws the current window only.


Example 2:

sis.Redraw (SIS_CURRENTWINDOW Or SIS_QUICK_REDRAW)

Replace "Or" with the bitwise-or operator in your language of choice.

Example 2 causes the cached bitmap to be blitted, then the Sprites Overlays drawn, using the SIS_QUICK_REDRAW flag.