Tiwregion is a container, first of all it is laid out.
Add 4 tiwregion to a blank form, and then:
usesSystem.uitypes; To use the Anchors property{Most of the settings in the following code can be done at design time}procedureTiwform1.iwappformcreate (Sender:tobject);begin{Put all 3 other iwregion in IWRegion1}Iwregion2.parent: = IWRegion1; Iwregion3.parent: = IWRegion1; Iwregion4.parent: = IWRegion1; {Set the size and position of the IWRegion1}Iwregion1.width: = 600; Iwregion1.height: = Self.height; Iwregion1.top: = 0; Iwregion1.left: = (clientwidth-iwregion1.width)Div2; Iwregion1.anchors: = [Aktop, Akbottom]; This is the key setting, which is actually VCL old stuff, but more important to the Web page{Set the position, size, and color of the other 3 iwregion}Iwregion2.align: = Altop; Iwregion3.align: = Alleft; Iwregion4.align: = alclient; Iwregion2.height: = 80; Iwregion3.width: = 120; Iwregion2.color: = clwebred; Iwregion3.color: = Clwebgold; Iwregion4.color: = Clwebyellow; {Let IWRegion2 and IWRegion3 have a split line that can be dynamically adjusted}Iwregion3.splitter: = True;End;
: