pascalSCADA OPM: HMICheckBox: Class THMICheckBox

Pascal SCADA OPM

Class THMICheckBox

Unit

HMICheckBox

Declaration

type THMICheckBox = class(TCheckBox, IHMIInterface)

Description

THMICheckBox

Hierarchy

  • TCheckBox
  • THMICheckBox

Overview

Methods

Protected procedure SetHMITag(t:TPLCTag);
Protected function GetHMITag:TPLCTag;
Protected function GetControlSecurityCode:UTF8String;
Protected procedure CanBeAccessed(a:Boolean);
Protected procedure MakeUnsecure;
Protected procedure Click; override;
Public procedure RefreshCheckBox(Data: PtrInt);
Public procedure UpdateStatus;

Properties

Published property AllowGrayed: Boolean read GetAllowGrayed stored false;
Published property Checked stored false;
Published property PLCTag: TPLCTag read GetHMITag write SetHMITag;
Published property Caption write SetCaption stored false;
Published property CaptionFalse: TCaption read FCaptionFalse write SetCaptionFalse stored true nodefault;
Published property CaptionTrue: TCaption read FCaptionTrue write SetCaptionTrue stored true nodefault;
Published property CaptionGrayed: TCaption read FCaptionGrayed write SetCaptionGrayed stored true nodefault;
Published property Color read IntGetColor write IntSetColor stored false;
Published property ColorFalse: TColor read FColorFalse write SetColorFalse stored true default clBtnFace;
Published property ColorTrue: TColor read FColorTrue write SetColorTrue stored true default clBtnFace;
Published property ColorGrayed: TColor read FColorGrayed write SetColorGrayed stored true default clBtnFace;
Published property Font write SetFont stored false;
Published property FontFalse: TFont read FFontFalse write SetFontFalse stored true;
Published property FontTrue: TFont read FFontTrue write SetFontTrue stored true;
Published property FontGrayed: TFont read FFontGrayed write SetFontGrayed stored true;
Published property OtherValuesIS: TOtherValues read FOtherValues write SetOtherValues stored true default IsGrayed;
Published property ValueFalse: Double read FValueFalse write SetValueFalse stored true;
Published property ValueTrue: Double read FValueTrue write SetValueTrue stored true;
Published property WriteTrueValue: Boolean read FWriteTrue write SetWriteTrue stored true default true;
Published property WriteFalseValue: Boolean read FWriteFalse write SetWriteFalse stored true default true;
Published property State: TCheckBoxState read GetState stored false nodefault;
Published property SecurityCode: UTF8String read FSecurityCode write SetSecurityCode;
Published property BeforeSendAValueToTag: TBeforeSendNumericValueToTagEvent read FBeforeSendValueToTag write FBeforeSendValueToTag;
Published property AfterSendValueToTag: TAfterSendNumericValueToTagEvent read FAfterSendValueToTag write FAfterSendValueToTag;

Description

Methods

Protected procedure SetHMITag(t:TPLCTag);

:

See also
IHMIInterface.SetHMITag
Protected function GetHMITag:TPLCTag;

seta um tag :

See also
IHMIInterface.GetHMITag
Protected function GetControlSecurityCode:UTF8String;

:

See also
IHMIInterface.GetControlSecurityCode
Protected procedure CanBeAccessed(a:Boolean);

:

See also
IHMIInterface.CanBeAccessed
Protected procedure MakeUnsecure;

:

See also
IHMIInterface.MakeUnsecure
Protected procedure Click; override;
 
Public procedure RefreshCheckBox(Data: PtrInt);
 
Public procedure UpdateStatus;
 

Properties

Published property AllowGrayed: Boolean read GetAllowGrayed stored false;

: AllowGrayed tells if the control accepts a grayed state. The value of this property depends mainly of your development environment (Lazarus or Delphi).

Published property Checked stored false;

: Use the Checked property to read/write the state of the control. Changes on this property will write the value of property ValueTrue/ValueFalse on the tag if the the respective property WriteTrueValue/WriteFalseValue is set to True.

Published property PLCTag: TPLCTag read GetHMITag write SetHMITag;

: Numeric tag link. The value changes of the tag will update the control appearance and the changes made on control can update the tag value.

See also
TPLCTag
Base class of a communication tag.
TPLCBlockElement
TPLCStructItem
TPLCTagNumber
Single numeric tag with communication.
Published property Caption write SetCaption stored false;

: Caption shows the actual caption of the control. If this property is modified, it changes the properties CaptionFalse, CaptionTrue and CaptionGrayed with the same value, to accelerate your configuration.

See also
CaptionTrue
CaptionFalse
CaptionGrayed
Published property CaptionFalse: TCaption read FCaptionFalse write SetCaptionFalse stored true nodefault;

: CaptionFalse is the text that will be show if the checkbox is unchecked.

See also
Caption
Published property CaptionTrue: TCaption read FCaptionTrue write SetCaptionTrue stored true nodefault;

: CaptionTrue is the text that will be show if the checkbox is checked.

See also
Caption
Published property CaptionGrayed: TCaption read FCaptionGrayed write SetCaptionGrayed stored true nodefault;

: CaptionGrayed is the text that will be show if the checkbox is grayed.

See also
Caption
Published property Color read IntGetColor write IntSetColor stored false;

: Color shows the actual color of the control. If this property is modified, it changes the properties ColorFalse, ColorTrue and ColorGrayed with the same value, to accelerate your configuration.

See also
ColorTrue
ColorFalse
ColorGrayed
Published property ColorFalse: TColor read FColorFalse write SetColorFalse stored true default clBtnFace;

: ColorFalse is the color of the checkbox if it's unchecked.

See also
Color
Published property ColorTrue: TColor read FColorTrue write SetColorTrue stored true default clBtnFace;

: ColorTrue is the color of the checkbox if it's checked.

See also
Color
Published property ColorGrayed: TColor read FColorGrayed write SetColorGrayed stored true default clBtnFace;

: ColorGrayed is the color of the checkbox if it's grayed.

See also
Color
Published property Font write SetFont stored false;

: Font shows the actual font of the control. If this property is modified, it changes the properties FontFalse, FontTrue and FontGrayed with the same value, to accelerate your configuration.

See also
FontTrue
FontFalse
FontGrayed
Published property FontFalse: TFont read FFontFalse write SetFontFalse stored true;

: FontFalse is the font of checkbox if it's unchecked.

See also
Font
Published property FontTrue: TFont read FFontTrue write SetFontTrue stored true;

: FontTrue is the font of checkbox if it's checked.

See also
Font
Published property FontGrayed: TFont read FFontGrayed write SetFontGrayed stored true;

: FontGrayed is the font of the checkbox if it's grayed.

See also
Font
Published property OtherValuesIS: TOtherValues read FOtherValues write SetOtherValues stored true default IsGrayed;

: The value of this property tells how the checkbox will handle tag values that are others than ValueFalse and ValueTrue.

See also
TOtherValues
Published property ValueFalse: Double read FValueFalse write SetValueFalse stored true;

: If the value of Tag is equal to ValueFalse, the checkbox is unchecked.

Published property ValueTrue: Double read FValueTrue write SetValueTrue stored true;

: If the value of the Tag is equal to ValueTrue, the checkbox is checked.

Published property WriteTrueValue: Boolean read FWriteTrue write SetWriteTrue stored true default true;

: If WriteTrueValue is true, all actions that check the control will write the property ValueTrue value on the linked tag.

Published property WriteFalseValue: Boolean read FWriteFalse write SetWriteFalse stored true default true;

: If WriteFalseValue is true, all actions that uncheck the control will write the property ValueFalse value on the linked tag.

Published property State: TCheckBoxState read GetState stored false nodefault;

: Tells the actual state of the control (checked, unchecked or grayed).

Published property SecurityCode: UTF8String read FSecurityCode write SetSecurityCode;

: Security code that allows access to control.

Published property BeforeSendAValueToTag: TBeforeSendNumericValueToTagEvent read FBeforeSendValueToTag write FBeforeSendValueToTag;

: Event triggered before HMIEdit send a value to linked tag.

Published property AfterSendValueToTag: TAfterSendNumericValueToTagEvent read FAfterSendValueToTag write FAfterSendValueToTag;

: Event triggered when the HMIEdit sent a value to linked tag.


Generated by PasDoc 0.14.0.