Skip to main content
Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 12) Base plug-in form. Inherits from:
  • Form

Members

Private attributes

Variable busyFlag

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 14)
Type: bool

Variable shift

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 15)
Type: bool

Properties

Property IsBusy

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 23)
sets the busy status of the form. When busy, the cursor is changed and many things are grayed out Return type: bool

Property PlugIn

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 71)
Get the component plug-in object. Null in design mode. Return type: IDotNetPlugIn

Property InDesignMode

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 77)
Determine if the current form is being displayed in design mode; members like PlugIn are not available at design time. Return type: bool

Property PassTabToCurrentControl

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterPlugInForm.cs (line 115)
Because of the way .NET COM plug-ins receive key messages, the base form does not properly process the TAB key to cycle along the TAB order. We have put in code to fix this, but it may prevent other controls from receiving TAB key events. Override this method to allow some or all controls to receive the TAB key and prevent cycling to the next control in the TAB order. Returns: Whether the currently-focused control on this form should process the TAB key. Default is false. Return type: bool

Protected functions

Function EnableControlsInternal

Enable-disable controls as needed based on the state of the GUI. Does the actual work; guaranteed to be called on the GUI thread. Do not call directly. Return type: void

Function EnableControls

Enable-disable controls as needed based on the state of the GUI. Call this method; it will call EnableControlsInternal() on the correct thread. Return type: void

Function OnLoad

Ensure that the plug-in is set before the form is shown. Parameters:
  • e: The event arguments that describes the load event
Parameters:
  • EventArgs e
Return type: override void

Function ProcessKeyPreview

In COM plug-ins, Tabs get lost. This is one way to make sure they don’t if we don’t want them to. Parameters:
  • m: The message being processed
Returns: True if we handled the message Parameters:
  • ref Message m
Return type: override bool

Function OnClosed

Bring the ModelCenter window to the top when this window is closed. Parameters:
  • e: The event args
Parameters:
  • EventArgs e
Return type: override void

Public functions

Function ShowAboutBox

Show the “about” dialog for this plug-in. Return type: void