Tiwedit//single-line text box, Passwordprompt property can be used as a password box Tiwmemo//Multiline text box Tiwtext//equivalent to multiple lines of Tiwlabel or cannot be edited Tiwmemo
TiweditUnit and succession chain:
Iwcompedit.tiwedit < Tiwcustomedit < Tiwcustomcontrol < Tiwbasehtmlcontrol < Tiwbasecontrol < Tiwvclbasecontrol < Tcontrol < Tcomponent < Tpersistent < TObject
Main members:
Property Text:tcaption //Text property Passwordprompt:boolean//whether to replace text with *, in order to do the Password field property Alignment:talignment Alignment Property Bgcolor:tiwcolor //Background Color property Focuscolor:tiwcolor //Get focus when the background color property dosubmitvalidation: Boolean//whether to perform validation at commit property Editable:boolean //Can edit property Noneditableaslabel:boolean//= True, and Editable = Fals E, the property Maxlength:integer //Maximum Length property Readonly:boolean//is read-only property will be rendered as Iwlabel Required:boolean // is a required property onsubmit:tnotifyevent //after it gets the focus, pressing Enter will raise OnSubmit, and if the event is not used, the ondefaultaction of the current form will be called Event. Property Onasyncchange:tiwasyncevent//procedure Clear//Empty
TiwmemoUnit and succession chain:
Iwcompmemo.tiwmemo < Tiwcustommemo < Tiwcustomcontrol < Tiwbasehtmlcontrol < Tiwbasecontrol < Tiwvclbasecontrol < Tcontrol < Tcomponent < Tpersistent < TObject
Main members:
Property lines:tstringlist//property text:tcaption //property bgcolor:tiwcolor //property Editable:boolean //property Invisibleborder:boolean//Whether to hide the border property Horizscrollbar:boolean //Whether the horizontal scroll bar property is displayed Vertscrollbar:boolean// whether to display the vertical scrollbar property Required:boolean //property onasyncchange:tiwasyncevent // Procedure Clear//
TiwtextUnit and succession chain:
Iwcomptext.tiwtext < Tiwcustomtext < Tiwcustomcontrol < Tiwbasehtmlcontrol < Tiwbasecontrol < Tiwvclbasecontrol < Tcontrol < Tcomponent < Tpersistent < TObject
Main members:
Property Bgcolor:tiwcolor //property Convertspaces:boolean//whether to convert consecutive spaces, if you do not convert contiguous spaces will only be rendered as a single space, the default Falseproperty Lines:tstringlist //property Rawtext:boolean //The control with this property also has: Tiwlabel, Tiwlink, Tiwurl, but it is in Tiwtext In the most commonly used property Useframe:boolean //whether to use the Frame property Wantreturns:boolean //Whether the line break is recognized as <BR> Trueproperty text:tcaption //procedure Clear //
Rawtext Property Test:
Procedure Tiwform1.iwappformcreate (sender:tobject); begin Iwtext1.clear; Iwtext1.rawtext: = True; With Iwtext1.lines does begin Add (' <table border= ' 1 "rules=" All "width=" 100% ">"); ADD (' <tr><td>111</td><td>222</td></tr> '); ADD (' <tr><td>333</td><td>444</td></tr> '); ADD (' </table> '); End;end;