Technical info

 

AsSevSeg
AsKnob
AsLedBtn
AsSlider
AsGPIB

AsLedBtn  tech info


  • AsLedBtn

Following is a brief description of most of properties and methods you can find in AsLedBtn Component. Red items are new in this release.


OnButtonOn Event

Occurs immediately after the value of ButtonOn property changes to True. This event has its effect even when the led of the control is not visible.

OnButtonOff Event

Occurs immediately after the value of ButtonOn property changes to False. This event has its effect even when the led of the control is not visible.

property AutoChange: Boolean;

When this property is True, ButtonOn changes its value automatically when the user clicks on the control. Otherwise the "OnClick" event code should include that effect.

property AutoCaptionCenter: Boolean;

Allows (or not) auto center the caption text on the button surface according with the following criteria: if ShowLed is True, the text is placed in the center of the space remained right to the Led. On the case ShowLed is False, Caption text will be placed in the center of the button.

property BitmapUp: TBitmap;

When BtnStyle is bsBitmap, specifies background picture used for the button in standby position.

property BitmapDisabled: TBitmap;

When BtnStyle is bsBitmap, specifies background picture used for the button in inactive state.

property BitmapDown: TBitmap;

When BtnStyle is bsBitmap, specifies background picture used for the button in down state.

property BitmapOver: TBitmap;

When BtnStyle is bsBitmap, specifies background picture used for the button when the mouse rolls over.

property ButtonOn: Boolean;

Alternative quality of the button useful in virtual instrumentation. Specifies whether the button is selected (true) or unselected (false). When ButtonOn is True, the led will take "LedOn" color. 

property BtnStyle: (bsCommon, bsMetal, bsBitmap);

Specifies different default skins for the control. "bsMetal" skin draw a light reflex ove the surface, and bsBitmap allows use of bitmap files as background.

property CaptionXMoved: Integer;

Number of pixels caption text will be drawn right to the center position. This number may be under zero.

property CaptionYMoved: Integer;

Number of pixels caption text will be drawn below to the center position. This number may be under zero.

properties LedLeft, LedTop, LedWidth & LedHeight: Word;

Specifies dimensions and relative position of the led on the button

property LedOff: TColor;

Led's colour when ButtonOn property is False.

property LedOn: TColor;

Led's colour when ButtonOn property is True.

property ReflexPos: Integer;

Horizontal position of the reflex when BtnStyle is bsMetal. 

property ReflexWidth: Word;

Width of the reflex when BtnStyle is bsMetal. 

property ShowLed: Boolean;

Use ShowLed to give visibility to the led on the button. This property has no effect in ButtonOn property behavior.

property TextStyle: (tsNone, tsRaised, tsLowered);

Specifies kind (2D or 3D) of caption text.

 

As Components for Instrumentation - supported by Azabache Systems

® Sistemas Azabache 2005  ---  All right reserved