Using Intraweb (25)-Tiwregion of basic controls

Source: Internet
Author: User


This should be the most important container in the IW, and its half and Tiwtabcontrol.
tiwregionUnit and succession chain:
Iwregion.tiwregion < Tiwcustomregion < Tiwhtml40container < Tiwhtmlcontainer < Tiwcontainer < Tiwbasecontainer < Tscrollingwincontrol < Twincontrol < Tcontrol < Tcomponent < Tpersistent < TObject

Main members:
Property Align:talignproperty Anchors:tanchorsproperty borderoptions:tiwcontainerborderoptions//Set the border width, color, Style Property Color:tiwcolorproperty Clipregion:boolean//CSS clip, if the control is larger than the area, whether cut; Default Trueproperty layoutmgr:tiwcontainerlayout//To apply the Layout Manager property Splitter:boolean//whether to provide split line; The location where it appears is related to the Align property Stylerenderoptions:tiwstylerenderoptionsproperty Visible:booleanproperty Dorefreshcontrol:booleanproperty Internaltaborder:ttaborderproperty Containercontext:tiwcontainercontext Property Iwcomponentscount:integerproperty Renderinvisiblecontrols:boolean//whether to render hidden controls; Default Falseproperty horzscrollbar:tcontrolscrollbarproperty vertscrollbar:tcontrolscrollbarproperty OnCreate: Tnotifyeventproperty onrender:tnotifyeventprocedure setbounds (Aleft:integer; Atop:integer; Awidth:integer; Aheight:integer) Procedure Invalidatefunction ownerform:tiwbaseformfunction Ownerframe:tiwhtmlcontainerprocedure Freeing (Aobject:tobject) procedure Forcealignprocedure DIsableautorangeprocedure enableautorangeprocedure Scrollinview (Acontrol:tcontrol) 

Renderinvisiblecontrols Property Test:
Procedure Tiwform1.iwappformcreate (sender:tobject); begin  Iwrectangle1.visible: = False;             If IWRectangle1 is inside the IWRegion1 and has hidden the  iwregion1.renderinvisiblecontrols: = True;//If you do not specify Renderinvisiblecontrols : = True Then Set iwrectangle1.visible from the asynchronous event: = True will not be valid end; {onasyncclick}procedure Tiwform1.iwbutton1asyncclick (sender:tobject; eventparams:tstringlist); begin  Iwrectangle1.visible: = Not iwrectangle1.visible;end;

Splitter Property Test:
{Three tiwregion}procedure tiwform1.iwappformcreate (sender:tobject) with no nesting first; begin  Iwregion1.color: = $ff 0000;  Iwregion2.color: = $0000ff;  Iwregion3.color: = $00ff00;  Iwregion1.align: = altop;  Iwregion2.align: = Alleft;  Iwregion3.align: = alclient;  Iwregion1.splitter: = True;  Iwregion2.splitter: = True;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.