C# Class WindowHelper.Controller

Mostrar archivo Open project: PeterHorsbollMoller/mbWindowHelper

Public Methods

Method Description
GetResItemStr ( string itemName ) : string

This is called from MapBasic code to get a named resource string

GetResItemStr ( string itemName, string replaceStrings ) : string

This is called from MapBasic code to get a named resource string and to replace {0}, {1}, etc. with values in the replaceString (; separated)

GetScreenSize ( ) : string

WinHelpDlgAddAllWindows ( int hMainWnd, int windowIDs, string windowNames, int windowTypes ) : void

This function is called from MapBasic code to add all windows to the WindowHelper dialog.

WinHelpDlgAddClosedWindow ( int hMainWnd, int windowID, string windowName, int windowType ) : void

This function is called from MapBasic code to add a closed window to the WindowHelper dialog.

WinHelpDlgAddWindow ( int hMainWnd, int windowID, string windowName, int windowType ) : void

This function is called from MapBasic code to add a window to the WindowHelper dialog.

WinHelpDlgAddWindows ( int hMainWnd, int windowIDs, string windowName, int windowType ) : void

This function is called from MapBasic code to add a window to the WindowHelper dialog.

WinHelpDlgClose ( ) : void

This function is called to close the WindowHelper dialog and release the resources when the end handeler is called

WinHelpDlgLoadSpecialWindows ( int hMainWnd ) : void

This function is called from MapBasic code to add the special windows to the WindowHelper dialog.

WinHelpDlgShow ( int hMainWnd ) : void

This is called from MapBasic code to get a named resource string

This function is called from MapBasic code to display the WindowHelper dialog.

WinHelpDlgWinChanged ( int windowID ) : void

This function is called from MapBasic code when a window is changed in some way in MapInfo Pro

WinHelpDlgWinClosed ( int windowID ) : void

This function is called from MapBasic code when a window is closed in MapInfo Pro

WinHelpDlgWinFocusChanged ( int windowID ) : void

This function is called from MapBasic code when another window gets focus in MapInfo Pro

Private Methods

Method Description
GetWindowWrapper ( int hMainWnd ) : System.Windows.Forms.WindowWrapper

Returns the window wrapper. If window wrapper is null it correctly initializes the static member

Method Details

GetResItemStr() public static method

This is called from MapBasic code to get a named resource string
public static GetResItemStr ( string itemName ) : string
itemName string Title of the string resource
return string

GetResItemStr() public static method

This is called from MapBasic code to get a named resource string and to replace {0}, {1}, etc. with values in the replaceString (; separated)
public static GetResItemStr ( string itemName, string replaceStrings ) : string
itemName string Title of the string resource
replaceStrings string List of values to insert into the string, ; separated
return string

GetScreenSize() public static method

public static GetScreenSize ( ) : string
return string

WinHelpDlgAddAllWindows() public static method

This function is called from MapBasic code to add all windows to the WindowHelper dialog.
public static WinHelpDlgAddAllWindows ( int hMainWnd, int windowIDs, string windowNames, int windowTypes ) : void
hMainWnd int
windowIDs int
windowNames string
windowTypes int
return void

WinHelpDlgAddClosedWindow() public static method

This function is called from MapBasic code to add a closed window to the WindowHelper dialog.
public static WinHelpDlgAddClosedWindow ( int hMainWnd, int windowID, string windowName, int windowType ) : void
hMainWnd int
windowID int
windowName string
windowType int
return void

WinHelpDlgAddWindow() public static method

This function is called from MapBasic code to add a window to the WindowHelper dialog.
public static WinHelpDlgAddWindow ( int hMainWnd, int windowID, string windowName, int windowType ) : void
hMainWnd int
windowID int
windowName string
windowType int
return void

WinHelpDlgAddWindows() public static method

This function is called from MapBasic code to add a window to the WindowHelper dialog.
public static WinHelpDlgAddWindows ( int hMainWnd, int windowIDs, string windowName, int windowType ) : void
hMainWnd int
windowIDs int
windowName string
windowType int
return void

WinHelpDlgClose() public static method

This function is called to close the WindowHelper dialog and release the resources when the end handeler is called
public static WinHelpDlgClose ( ) : void
return void

WinHelpDlgLoadSpecialWindows() public static method

This function is called from MapBasic code to add the special windows to the WindowHelper dialog.
public static WinHelpDlgLoadSpecialWindows ( int hMainWnd ) : void
hMainWnd int
return void

WinHelpDlgShow() public static method

This is called from MapBasic code to get a named resource string This function is called from MapBasic code to display the WindowHelper dialog.
public static WinHelpDlgShow ( int hMainWnd ) : void
hMainWnd int
return void

WinHelpDlgWinChanged() public static method

This function is called from MapBasic code when a window is changed in some way in MapInfo Pro
public static WinHelpDlgWinChanged ( int windowID ) : void
windowID int
return void

WinHelpDlgWinClosed() public static method

This function is called from MapBasic code when a window is closed in MapInfo Pro
public static WinHelpDlgWinClosed ( int windowID ) : void
windowID int
return void

WinHelpDlgWinFocusChanged() public static method

This function is called from MapBasic code when another window gets focus in MapInfo Pro
public static WinHelpDlgWinFocusChanged ( int windowID ) : void
windowID int
return void