Unload

Purpose

Removes a ribbon initialization

 

Type: MapBasic Sub

 

Syntax

Unload(Variable as this)

Variable: Name of your ribbon instance set in function AddIn_Name

 

Description

If a ribbon initialization is present, the customizations should be released when you exit the app. Normaly you have do this while the end handler is executing. All changes from your resourcen.xml will be removed.

 

Example

 

Declare Sub EndHandler

Declare Method Unload Class "GeoAS.RibbonSDK.Addin" Lib "GeoAS.RibbonSDK.dll" Alias Unload(ByVal p1 as This)

Global myAddIn as This

'******************************

Sub EndHandler

 call Unload(myAddIn)

End Sub

'******************************

 

See also: New_RibbonSDK