ActiveX Controls

ActiveX structure provides the most control and can be created with these programming languages: C++, Delphi, Visual Basic, and .NET. When used with other GoldMine APIs, ActiveX is powerful.

Within the ActiveX support, 4 methods can be implemented in your control for stronger interaction with GoldMine. It is not necessary to implement these functions:

public void GMOnStart(longhWnd)T

This is the only function that passes a parameter. The parameter is the HWND (window handle) of the container window in GoldMine. Use the Windows API SendMessage() call to control what happens to the container (for implementing a Close button—since the control is late bound in GoldMine, and cannot expose events).

public void GMOnActivate()

This function tells you when the user has given your control’s container focus in GoldMine.

public void GMLostFocus()

This function is called whenever the user gives focus to another object when your control had focus.

public void GMOnDestruct()

This function is called when the window is just about to close; it provides the opportunity to clean up.

For more information, see Plug-in Description File.