All Cadcorp SIS API Methods

InsertOverlayTheme Method

Description

Inserts a copy of a named Theme into an overlay in the current window.

Syntax

Visual Basic
Public Function InsertOverlayTheme( _
   ByVal pos As Integer, _
   ByVal theme As String, _
   ByVal nTheme As Integer _
) As Integer

Parameters

pos
The position of the overlay in the overlays list to which the Theme is to be added.
 
theme
The named Theme to add. This can be any named Theme previously created, or loaded from a Named Object Library.
 
nTheme
The position in the list of Themes on the overlay at which to insert the Theme. If this argument specifies a position in the existing Themes then the new Theme will not replace the existing Theme at the given position, but will shuffle any other Theme objects down the list.

Remarks

Any named Theme given will be copied, therefore any subsequent changes to the named Theme will not be reflected in the overlay Theme.

Available: GEO D OD OM OV SISpy

Groups:

Example

sis.InsertOverlayTheme(0, "Contours", 2)