Using Intraweb (15)-Tiwedit, Tiwmemo, Tiwtext of basic controls

Source: Internet
Author: User


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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.