Industrial

From Free Pascal wiki
Revision as of 23:47, 26 March 2023 by Wp (talk | contribs) (→‎Components: Prepare for other components of the package)
Jump to navigationJump to search

Template:Industrial

About

The Industrial package contains a set of industrial-themed components, such as LED indicators, seven-segment displays, analog gauges, thermometer gauges, knob, on/off switch, etc.

Download and Installation

  • Released version distributed by the Online Package Manager: check the "IndustrialStuff" item in the Online Package manager, click the "Install" button and follow the instructions.
  • Development version on Lazarus CCR (svn):
  • In the Lazarus IDE, open the file industrial.lpk in "Package" > "Open Package File (.lpk)" and click on "Use" > "Install". Allow to rebuild the IDE.
  • When Lazarus restarts after the installation the components are on palette Industrial.

Components

LED Indicators

TAdvLED

TAdvLED.png Indicator light as LED or light bulb

  • Properties
    • Kind (enumeration TLEDKind = (lkRedLight, lkGreenLight, lkYellowLight, lkBulb, lkCustom)): red, green or yellow LED, or light bulb, or LED in adjustable colors as defined by the GlyphDisabled, GlyphOff and GlyphOn properties.
    • State (enumeration TLEDState = (lsDisabled, lsOff, lsOn)): Indicator is disabled (gray), OFF (dark color) or ON (bright color).
    • Blink: boolean: The LED toggles automatically between ON and OFF states. The duration during which the LED is in each state is given by the property BlinkDuration (in milliseconds).
    • FlashMode (enumeration TFlashMode = (fmFlashOffToOn, fmFlashOnToOff)): Defines whether the Flashmethod causes a transition from OFF to ON, or from ON to OFF.
  • Methods
    • procedure Toggle: Switches between the states of the indicator (unless State is lsDisabled).
    • procedure Flash(ADuration: Integer): The indicator flashes for the ADuration time (in milliseconds) to the other state and then returns to the current state again. Whether the transition is from OFF to ON or from ON to OFF is specified by the FlashMode property.
  • Demo project
    • in folder TAdvLED of the installation folder.

TIndLED

TIndLED.png LED indicator with configurable shape and color. Can be grouped with others so that only one LED of that group is active.

  • Properties
    • Bevels: a collection of TcyBevel items defining bevels around the LED (raised/lowered, left/top/right/bottom, highlight and shadow color, as well as bevel width)
    • GroupIndex: Integer: in a group of LEDs sharing the same non-zero GroupIndex only a single LED can be lit. When AllowAllOff is true all LEDs of this group can be turned OFF, otherwise there must always be one LED which is ON.
    • LedColorDisabled, TLedColorOff, TLedColorOn (type TColor): colors of the LED in the disabled, OFF and ON states, respectively.
    • LedValue: boolean: determines whether the LED is ON (true) or OFF (false).
    • ShapeType (enumeration TShapeType = (stRectangle, stRoundRect, stEllipse)): shape of the LED. In case of stRoundRect the corner radius is determined by ShapeRoundRectX and ShapeRoundRectY.
    • ShapeLedColorDisabled, ShapeLedColorOff, ShapeLedColorOn (type TColor): pen color of the border of the LED shape.

Displays

TLEDNumber

tlednumber.png

TLCDDisplay

tlcddisplay 150.png

Gauges

TAnalogSensor

tanalogsensor.png

TA3nalogGauge

ta3naloggauge.png

TindGnouMeter

tindgnoumeter.png


Control Elements

TmKnob

tmknob.png

TMultiSlider

tmultislider.png

Switches

TOnOffSwitch

tonoffswitch.png