InitializeSuperclass() method
- Last UpdatedNov 26, 2024
- 1 minute read
Use the InitializeSuperclass() method to load the required information from the subclass (the inheriting control). The InitializeSuperclass() method must be called in the inheriting control's constructor.
Note: This method should be used only to develop a new control based on the common control (FactMES.Controls). It should not be used to work with an existing control, such as Utilization, Production or Queue.
There are two overloads for this method based on whether the inheriting control contains a grid or not.
Syntax for controls containing a grid
InitializeSuperClass(FactGrid, controlType, formStateButton);
Parameters
FactGrid
A reference to the wrapper class to the control's grid.
controltype
A string that defines the type of the descendant control. For example, "Util" or "Steps".
This is the screen portion of the UI_Config key for the control's configuration settings.
formStateButton
A string that appears on the large button in the center of the control that indicates the control's state when the control is not active. For example, "No User" or "No Entity".
Syntax for controls not containing a grid
InitializeSuperClass(controlType, formStateButton);
Parameters
controltype
A string that indicates the type of the descendant control. For example, "Util" or "Steps".
This is the screen portion of the UI_Config key for the control's configuration settings.
formStateButton
A string that appears on the large button in the center of the control that indicates the control's state when the control is not active. For example, "No User" or "No Entity".