Table of Contents

TTMSFNCWidgetLEDBar Class

Published LED bar control for displaying a numeric value as lit LED segments.

API unit family: TMSFNCWidgetLEDBar Inherits from: TTMSFNCCustomWidgetLEDBar

Syntax

TTMSFNCWidgetLEDBar = class(TTMSFNCCustomWidgetLEDBar)

Properties

Name Description
Leds Holds the collection of LED segments that make up the bar. (inherited from TTMSFNCCustomWidgetLEDBar)
Spacing Specifies the gap, in pixels, between adjacent LEDs and at the edges of the bar. (inherited from TTMSFNCCustomWidgetLEDBar)
Value Specifies how many LEDs are lit, counting from the left. (inherited from TTMSFNCCustomWidgetLEDBar)

Methods

Name Description
InitSample Replaces the current LEDs with a default sample set of six LEDs. (inherited from TTMSFNCCustomWidgetLEDBar)

Events

Name Description
OnAfterDrawLed Occurs after an individual LED is drawn, allowing additional overlay rendering. (inherited from TTMSFNCCustomWidgetLEDBar)
OnBeforeDrawLed Occurs before an individual LED is drawn, allowing custom rendering or suppression of the default drawing. (inherited from TTMSFNCCustomWidgetLEDBar)

Used by