Initialize

Purpose

Initializes instance with MapInfo platform and own  application

 

Type: MapBasic Sub

 

Syntax

call Initialize(myAddIn, SYSTEMINFO(SYS_INFO_IMAPINFOAPPLICATION), ApplicationName$() )

myAddIn: Name of the instance

SYSTEMINFO(SYS_INFO_IMAPINFOAPPLICATION): Running MapInfo application

ApplicationName$() : Running application (the name of the mbx file)

 

Description

After you have created a new ribbon instance you have to call this sub to initializes the application

 

Example

The following example creates a new instance and Initializes the instance with Mi platform and application

 

Declare Method New_RibbonSDK Class "GeoAS.RibbonSDK.Addin" Lib "GeoAS.RibbonSDK.dll" Alias Ctor_CreateInstance() as This

Declare Method Initialize Class "GeoAS.RibbonSDK.Addin" Lib "GeoAS.RibbonSDK.dll" Alias Initialize(ByVal p1 as This, ByVal p2 as refptr, ByVal p3 as String)

Global myAddIn as This

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

sub Main

 'Create a new ribbon instance

 myAddIn = New_RibbonSDK()

 'Initializes instance with Mi platform and application

 call Initialize(myAddIn, SYSTEMINFO(SYS_INFO_IMAPINFOAPPLICATION), ApplicationName$() )

end sub

 

see also: New_RibbonSDK