Custom Instrument GUI - Available Instrument Controls
Table 1 lists all of the instrument controls available for use when designing the GUI for a Custom Instrument. These controls are specifically for use with the Custom Instrument.
Palette Icon | Control Name | Description | Default Appearance on Form |
---|---|---|---|
| TInstrumentBackground | Used to add a colored background area to the instrument panel. |
|
| TInstrumentButton | Used to add a push button to the instrument panel. This control would typically be used to initiate some action when it is clicked, by having event handling code linked to its OnClick event. |
|
| TInstrumentCaption | Used to add a caption to the instrument panel. Captions are typically used to distinguish between distinct regions of functionality within the panel (e.g. |
|
| TInstrumentCheckBox | Used to add a check box to the instrument panel. When clicked, the component's Checked property is automatically toggled between enabled (True) and disabled (False). |
|
| TInstrumentEdit | Used to add an edit box to the instrument panel. This control is typically used to retrieve text that is entered by the user. It can be used to control an output signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentGauge | Used to add an analog-style gauge to the instrument panel. It can be used to monitor an input signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentGraph | Used to add a graph to the instrument panel. It can be used to monitor an input signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentKnob | Used to add a control knob to the instrument panel. It can be used to control an output signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentLabel | Used to add a simple text label to the instrument panel. Use labels to 'annotate' the panel – tagging controls or explaining functionality. |
|
| TInstrumentLEDButton | Used to add an LED button to the instrument panel. When clicked, the component's IsOn property is automatically toggled between enabled (True) and disabled (False). |
|
| TInstrumentLEDDigits | Used to add a digital LED display to the instrument panel. It can be used to either monitor an input signal, or control an output signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentLEDsPanel | Used to add a grouped 'panel' of LEDs to the instrument panel. It can be used to either monitor an input signal, or control an output signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentNumericPanel | Used to add a numeric display to the instrument panel. It can be used to either monitor an input signal, or control an output signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentPanel | Used to add panel area to the instrument panel. This control is used for panel aesthetics, for example to highlight the numeric display of monitored information. |
|
| TInstrumentProgressBar | Used to add a progress bar to the instrument panel. It can be used to monitor an input signal. The direct link to the signal is made using the SignalName property. |
|
| TInstrumentScrollBar | Used to add a scroll bar to the instrument panel. This control would typically be used in combination with some other control or form, to allow scrolling of the content therein. |
|
| TInstrumentTerminal | Used to add a terminal window to the instrument panel that can be used to enter and/or display characters or strings of characters as multi-line text. Such a terminal window could be used as a simple memo control, for example. |
|
| TInstrumentTrackBar | Used to add a slider bar to the instrument panel. It can be used to control an output signal. The direct link to the signal is made using the SignalName property. |
|
Properties, Events and Methods
Properties and events associated to each control can be viewed on the Properties and Events panels respectively. Table 2 lists information with respect to the supported (and Public) methods for each control. Where methods are indicated as being inherited, the source of that inheritance (and its default set of methods) can be found in external documentation for the Borland Delphi Visual Component Library.
Control | Methods |
---|---|
TInstrumentBackground | All methods inherited from TGraphicControl |
TInstrumentButton | The following dedicated new method for this control: |
TInstrumentEdit | All methods as per the TXPEdit component |
TInstrumentKnob | All methods inherited from TCustomControl |
TInstrumentPanel | The following dedicated new method for this control: |
TInstrumentScrollBar | The following method is inherited from TCustomXPScrollBar: |
TInstrumentTerminal | The following dedicated new methods for this control: |