Skip to main content
View as Markdown

IExternalForm interface

This IExternalForm interface object has low level methods such as resizing and displaying the form.

public interface IExternalForm

Namespace: DXP · Assembly: Altium.SDK.Interfaces

Derived: IDocumentOptionsView, INavigatorView, IRevisionsView, IServerView, IToolchainManagerGenericOptionDlg, IInstrumentView, ILibraryReportExternalSettings

Remarks​

For example VCL technology is not compatible with MS C++ toolkit.

Therefore to work with windows in the Altium Designer platform, you use the IExternalForm interface to have access to windows and manipulate them.

Methods​

MethodReturnsDescription
FocusFirstTabStopvoid
GetBoundsvoidThis method retrieves the four bounds (left, top, width and height) of the form.
GetCaptionstring
GetHandleuint
HidevoidThis Hide method hides the form from view in Altium Designer.
ParentWindowCreatedvoid
ParentWindowDestroyedvoid
SetBoundsvoidThis method sets the bounds of the external form.
SetFocusvoid
SetParentWindowvoid
ShowvoidThis method displays the hidden form.

FocusFirstTabStop​

No description yet.

void FocusFirstTabStop();

Returns: nothing (void)

See also: IClient

Examples: Extension_ModifySchWireColor

GetBounds​

This method retrieves the four bounds (left, top, width and height) of the form.

void GetBounds(ref int argLeft, ref int argTop, ref int argWidth, ref int argHeight);
ParameterTypePassing
argLeftintref
argTopintref
argWidthintref
argHeightintref

Returns: nothing (void)

See also: IClient

GetCaption​

No description yet.

string GetCaption();

Returns: string

GetHandle​

No description yet.

uint GetHandle();

Returns: uint

Hide​

This Hide method hides the form from view in Altium Designer.

void Hide();

Returns: nothing (void)

See also: IClient

ParentWindowCreated​

No description yet.

void ParentWindowCreated();

Returns: nothing (void)

See also: IClient

ParentWindowDestroyed​

No description yet.

void ParentWindowDestroyed();

Returns: nothing (void)

See also: IClient

SetBounds​

This method sets the bounds of the external form.

void SetBounds(int argLeft, int argTop, int argWidth, int argHeight);
ParameterTypePassing
argLeftintvalue
argTopintvalue
argWidthintvalue
argHeightintvalue

Returns: nothing (void)

See also: IClient

SetFocus​

No description yet.

void SetFocus();

Returns: nothing (void)

See also: IClient

Examples: Extension_ModifySchWireColor

SetParentWindow​

No description yet.

void SetParentWindow(IExternalFormHolder argParentWindow);
void SetParentWindow(object argParentWindow);
ParameterTypePassing
argParentWindowIExternalFormHoldervalue

Returns: nothing (void)

The first overload is an extension method of IExternalFormHelper (using DXP;) with typed parameters; the second is declared by the interface.

See also: IClient

Show​

This method displays the hidden form.

void Show();

Returns: nothing (void)

See also: IClient

Examples: Extension_ModifySchWireColor

Returned by​

INavigationDocument.GetDocumentScene, INavigationProvider.NavigateTo, INavigationSystem.NavigateTo, INavigationSystem.NavigateToScene, IWebAppHostModule.CreateSimpleBrowserForm, IWebAppHostModule.CreateWebBrowserScene, IModelEditor.GetExternalForm, ExternalFormComponent.GetExternalForm

Accepted by​

INavigationProvider.NavigateTo, INavigationSystem.NavigateTo, INavigationSystem.NavigateToScene, IHighlightedModelEditor.DrawModel_PinsSelected, IHighlightedModelEditor.HighLightComponentPins, IHighlightedModelEditor.RegisterListener, IHighlightedModelEditor.ShowPinsAsSelected, IHighlightedModelEditor.ShowSpecifiedPinsOnly, IModelEditor.DrawModel, IModelEditor.DrawModel_FromModel, IModelEditor.DrawModel_FromSchImpl, IModelEditor.DrawModel_FromStepFile, IModelEditor2.Config, IModelEditor2.DrawModel_FromPCBPrimitive, ExternalFormComponent.SetExternalForm

Examples​

Used in the SDK examples: Extension_NavigationProvider.