Proportion of the container allocated to the item
Member of Split Layout Item (PRIM_SPLI)
Data Type - Integer
The Weight property specifies how the control managed by the layout item will behave when container is resized. Space is allocated as a proportion. If both sides have the same value the space will be split equally between the two controls. If the value is zero the control will not resize.
This example shows a simple form with vertical split. The panel to the left has a weight of 0 while the other has a weight of 1. The panel on the right will resize to occupy whatever space is available.
Function Options(*DIRECT) Begin_Com Role(*EXTENDS #PRIM_FORM) Clientwidth(660) Clientheight(338) Componentversion(2) Top(215) Left(237) Layoutmanager(#SplitLayout) Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1) Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(Theme500) Define_Com Class(#PRIM_SPLM) Name(#SplitLayout) Orientation(Vertical) Dividerstyle(Gap) Define_Com Class(#PRIM_SPLI) Name(#SplitLayoutItem1) Manage(#Panel1) Parent(#SplitLayout) Define_Com Class(#PRIM_SPLI) Name(#SplitLayoutItem2) Manage(#Panel2) Parent(#SplitLayout) Weight(1) Define_Com Class(#PRIM_PANL) Name(#Panel1) Displayposition(1) Height(338) Left(0) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(0) Width(331) Style(#Style1) Define_Com Class(#PRIM_PANL) Name(#Panel2) Displayposition(2) Height(338) Left(339) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(0) Width(321) Style(#Style1) End_Com
Febuary 18 V14SP2