Using Intraweb-Tiwappform, Tiwform, Tiwbasehtmlform, Tiwbaseform

Source: Internet
Author: User


Forms < Tiwappform < Tiwform < Tiwbasehtmlform < Tiwbaseform.
TiwappformUnit and succession chain:
Iwappform.tiwappform < Tiwform < Tiwbasehtmlform < Tiwbaseform < Tiwmoduledsn < Tiwcontainer < TIWBaseCo Ntainer < Tscrollingwincontrol < Twincontrol < Tcontrol < Tcomponent < Tpersistent < TObject

Main members:
Property Onurlrequest:tonurlrequest//respond to the following Dourlrequest method procedure Dourlrequest (arequest:thttprequest)//Execute Onurlrequest events; such as: Dourlrequest (webapplication.request);  function Messageform:tiwmessageformclass//Functions get classes instead of objects; it's a virtual function. Perhaps to beautify the pop-up window when inheriting class procedure Setasmainform              


TiwformUnit and succession chain:
Iwform.tiwform < Tiwbasehtmlform < Tiwbaseform < Tiwmoduledsn < Tiwcontainer < Tiwbasecontainer < TScrol Lingwincontrol < Twincontrol < Tcontrol < Tcomponent < Tpersistent < TObject

{Tiwform = Class (Tiwbasehtmlform, Iiwhtml40container, iiwhtml40form)//It implements two interface} main members:
Property Activecontrol:tiwcustomcontrol//Current activated control property Background:tiwbackground//Background Image Set Property Layoutmgr: Tiwcontainerlayout//Specify Layout Manager property Handletabs:boolean//Unused property Lefttoright:boolean//Text Direction property Lockuntilloaded:boolean//Whether the operation is forbidden before the load is complete, default Trueproperty Lockonsubmit:boolean//Whether duplicate commits are forbidden, default Trueproperty Stylesheet:ti Wfilereference//CSS file to be used; The document shall be under Wwwroot (or nested) property showhint//property Serveronresize:boolean//temporarily unused; Only WriteProperty progressindicator:tiwprogressindicator//Specify the Progress prompt property Theme:string//Unused property Xptheme:bool EAN//property javascript:tstringlist//js Code Property doctype:string//now default; For example, you can specify:  Property Keepalive:boolean//remain active to ensure that the session is not period; It should be used when the asynchronous event takes longer, but with caution, it will make the sessiontimeout into more than 400 days; Default False;property ondefaultaction:tnotifyevent//default event; For example, after Tiwedit edit enter, if not write to it OnSubmit event, will execute the default event property OnResize; In the case of serveronresize temporarily deprecated, it only executes once constructor Create (aowner:tcomponent); Override;procedure Addtoinitproc (const acode:string); Add JS code for initialization procedure dodefaultaction; Execute once ondefaultactionprocedure setiwajaxnotifier (aiwajaxnotifier:tiwbasehtml40component); Tiwajaxnotifier is calling it and the following sendajaxnotification, feeling that calling them directly should be more flexible than tiwajaxnotifier controls. Function Sendajaxnotification:       Boolean; function getiwajaxnotificationjscode:string; function Getisstrictmode:boolean;        It seems to be the decision is not IE Compatibility mode class function Findparentform (Control:tcontrol): Tiwform;property pagecontext:tiwpagecontext40; This object has more page-related operations; Only ReadProperty Containercontext:tiwcontainercontext//The object has more container-related Operation property javascriptonce:string//JS that only executes once Code property cachefiles:tstrings//Cache textList of items; Only Read


TiwbasehtmlformUnit and succession chain:
Iwbasehtmlform.tiwbasehtmlform < Tiwbaseform < Tiwmoduledsn < Tiwcontainer < Tiwbasecontainer < Tscrollingwincontrol < Twincontrol < Tcontrol < Tcomponent < Tpersistent < TObject

Main members:
Property Bgcolor:tiwcolor    //Background Color property        linkcolor:tiwcolor  //Link Color Property        textcolor:tiwcolor  //General text color Property    vlinkcolor:tiwcolor//visited link colors


TiwbaseformUnit and succession chain:
Iwbaseform.tiwbaseform < Tiwmoduledsn < Tiwcontainer < Tiwbasecontainer < Tscrollingwincontrol < Twincontrol < Tcontrol < Tcomponent < Tpersistent < TObject

Main members:
Property formaction:string//corresponds to the Html Form's action attribute params:tstringlist//parameter list, somewhat similar to WebApplication.Request.Co Ntentfields, but the latter is more complete; Only ReadProperty Released:boolean//Whether the Release, but after the execution soon after the free, this attribute does not have much meaning; Only ReadProperty webapplication:tiwapplication//only readproperty formstate:tiwformstate//Current status: FsUndefined, F Srendering, Fsexecuting, fscreating, fscreated; Only ReadProperty execcount:cardinal//Command execution times; Only ReadProperty Allowpageaccess:boolean//does not seem to use the property Connectionmode:tiwconnectionmode//Read connection mode: Cmany, Cmsecure , Cmnonsecureproperty preheader:tstringlist//Insert to head Front content property Extraheader:tstringlist//insert to head back content proper Ty Contentfiles:tstringlist//contains JS, CSS property hiddenfields:tstringlist//hidden field property title:string//page title proper Ty Preventbackbutton:boolean//Whether the back button is disabled; Default Falseproperty onafterrender:tnotifyevent//rendered after OnCreate > OnRender property oncreate:tnotifyeventproperty O Ndestroy: Tnotifyeventprocedure Hide//procedure Show//procedure release/released; It will first add the form to the list inside the Webapplicaiton (freleasedforms), and Hide it off; Wait until the new ActiveForm is ready and then Freeprocedure releaseandredirect (const aurl:string)//release and turn to class function texttohtmlstringliteral ( Const atext:string): string; Some characters in Html need to be transcoded, it is convenient to use this function

Example:
Cond...

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.