TFRStaticTextContents - Events - Properties
Statical, predefined text.
Description
Use TFRStaticText to insert large text parts (larger than Label) into your H TML document.Depending on TextType content , TFRStaticText will be inserted as JavaScript pogramm e between <SCRIPT> </SCRIPT> tags, preformatted text between <PRE> </PRE> tags or as a part of t he HTML document (this option can be used to generate HTML, based on a template).
Use tags inside your text of TFRStaticText to set values at runtime, see OnTag event.
Contents - TFRStaticText - Properties
OnGetLines
OnTagDelphi declaration
property OnGetLines: TFRStringListEvent read FOnGetLines write FOnGetLines;
C++ declaration
__property TFRStringListEvent OnGetLines={ read=FOnGetLines, write=FOnGetLines }
Description
Use OnGetLines event to get contents of your StaticText at runtime.
Delphi declaration
property OnTag: TFRGetNamedStrValue read FOnTag write FOnTag;
C++ declaration
__property TFRGetNamedStrValue OnTag={ read=FOnTag, write=FOnTag }
Description
Use OnTag event to get values represented by tags in your text at runtime.F or more information about tags , s ee Tags, file names, paths,server variables and configuration parameters.
Contents - TFRStaticText - Events
FileName
Name of a n external file.InHeaderDelphi declaration
property FileName: AnsiString read GetFileName write SetFileName;
C++ declaration
__property System::AnsiString FileName={ read=GetFileName, write=SetFileName, nodefault }
Description
Use F i leName to read contents from a n external file , not from Lines property.
LeaveEmptyTagsDelphi declaration
property InHeader: Boolean read FInHeader write SetInHeader default true;
C++ declaration
__property bool InHeader={ read=FInHeader, write=SetInHeader, default=1 }
Description
Set InHeader to true to insert t he contents of your TFRStaticText into t he header part of t he HTML document. It's reccommended to insert JavaScript scripts into t he header, not into t he body of the document.
LinesDelphi declaration
property LeaveEmptyTags: Boolean read FLeaveEmptyTags write FLeaveEmptyTags;
C++ declaration
__property bool LeaveEmptyTags={ read=FLeaveEmptyTags, write=FLeaveEmptyTags, nodefault }
Description
If you set LeaveEmptyTags to true, t he tags that will not get value from OnTag event will be left in resulting text as tags and your application can process these tags later.
TextTypeDelphi declaration
property Lines: TStringList read FLines write SetLines;
C++ declaration
__property Classes::TStringList *Lines={ read=FLines, write=SetLines, nodefault }
Description
Content of TFRStaticText.Use Lines to write t he content of StaticText into your application. You can also use FileName property to read t he contents from a n external file.
Delphi declaration
property TextType: TFRStaticType read FType write SetType;
C++ declaration
__property TFRStaticType TextType={ read=FType, write=SetType, nodefault }
Description
Use TextType to set t he type of you r StaticText.See TFRStaticType for more information.