Class TLayoutPanel (unit LOPanel) |
TPanel
Constructors |
Functions |
TLayoutPanel.
TLayoutPanel.
Properties |
Events |
Variables |
Constructors |
TConstraint.NumActualInputs } { TLayoutPanel class implementation } {--------------------------------------- TLayoutPanel.Create } { Initialize variables
Functions |
TLayoutPanel.Create} {--------------------------------------- TLayoutPanel.Destroy } { Destroy all lists that were created
Pair of functions incrementing or decrementing Layout level
TLayoutPanel.Empty } {--------------------------------------- TLayoutPanel.DisableLayout } { Increment Layout level to disable layout
TLayoutPanel.DisableLayout } {--------------------------------------- TLayoutPanel.EnableLayout } { Decrement Layout level to enable layout
TLayoutPanel.GetChildMetricsIndexByChild } {--------------------------------------- TLayoutPanel.GetChildLayoutMetrics } { Return layout metrics corresponding to the control If metrics is not found return false
TLayoutPanel.IsLayoutEnabled } {--------------------------------------- TLayoutPanel.GetControlByName } { Get control by name
TLayoutPanel.RemoveFoundChildLayoutMetrics } {--------------------------------------- TLayoutPanel.IsChildControl } { Check if a pointer is child control. Returns control index or -1 if not found
causes the receiver to size/position its children according to the specified layout metrics if you change the layout metrics for a child window call Layout to have the changes take effect
TLayoutPanel.WereAsIsMoved } {--------------------------------------- TLayoutPanel.Layout } causes the receiver to size/position its children according to the specified layout metrics if you change the layout metrics for a child window call Layout to have the changes take effect
TLayoutPanel.SetRelWinLayoutMetrics } {--------------------------------------- TLayoutPanel.RemoveChildLayoutMetrics } { Remove child (layout) metrics for a given child (if found) and update other children as necessary
TLayoutPanel.RemoveSuperfluousMetrics} {--------------------------------------- TLayoutPanel.SetChildLayoutMetrics } { Set layout metrics for control
TLayoutPanel.Destroy } {--------------------------------------- TLayoutPanel.AlignControls } { Some controls could be removed since the last call This can happen when AControl = nil
TLayoutPanel.GetRelControlNum } { Procedures for storing and reading Metrics } {--------------------------------------- TLayoutPanel.DefineProperties } { Define function for reading and writing
TLayoutPanel.GetControlByName} {--------------------------------------- TLayoutPanel.GetRelControlByNum } { Get relative control by index (lmParent - maximal or =ParentNum) This index is not a control number but coresponding metrics number All messing in this code comes from working with old storing format (one without controls' names)
TLayoutPanel.GetRelControlByNum } {--------------------------------------- TLayoutPanel.GetRelControlNum } { Get index of relative control (lmParent = ParentNum) This index is not a control number but coresponding metrics number All messing in this code comes from working with old storing format (one without controls' names)
TLayoutPanel.RemoveChildLayoutMetrics} {--------------------------------------- TLayoutPanel.RemoveFoundChildLayoutMetrics } { Remove child (layout) metrics (that exists) and update other children as necessary
TLayoutPanel.AlignControls} {--------------------------------------- TLayoutPanel.RemoveSuperfluousMetrics } { If metrics has no corresponding control remove it
TLayoutPanel.SetChildLayoutMetrics } {--------------------------------------- TLayoutPanel.SetRelWinLayoutMetrics } { Set AsIs metrics for any relative that has no metrics yet
SetOutputAndMatch } {--------------------------------------- TLayoutPanel.AddConstraint } { Add a consraint by metrics and type of consraint
TLayoutPanel.RemoveAllConstraints} {--------------------------------------- TLayoutPanel.BuildConstraint } { Build constraints for a gien child metrics
TLayoutPanel.ClearPlan} {--------------------------------------- TLayoutPanel.BuildPlan } { Try to resolve more and more variables
TLayoutPanel.ExecutePlan} {--------------------------------------- TLayoutPanel.ClearPlan } { Clear plan that was built before
TLayoutPanel.GetChildMetricsCount } {--------------------------------------- TLayoutPanel.Empty } { To publish a property
TLayoutPanel.HasData } {--------------------------------------- TLayoutPanel.EqualConstraints } { Compare constraints
TLayoutPanel.HasData } {--------------------------------------- TLayoutPanel.EqualMetrics } { This procedure is used for comparison Ancestor's metrics to native metrics. Children with equal names are considered to be equal
TLayoutPanel.LayoutUnitsToPixels } {--------------------------------------- TLayoutPanel.ExecutePlan } { Execute plan that was built before
TLayoutPanel.SetVacantPointers } {--------------------------------------- TLayoutPanel.GetChildMetrics } { Get child metrics by index
TLayoutPanel.IsChildControl } {--------------------------------------- TLayoutPanel.GetChildMetricsByChild } { Return child metrics corresponding to the control If metrics is not found return nil
TLayoutPanel.GetPlanItem } {--------------------------------------- TLayoutPanel.GetChildMetricsCount } { Returns child metrics count
TLayoutPanel.GetChildMetricsByChild } {--------------------------------------- TLayoutPanel.GetChildMetricsIndexByChild } { Return child metrics index corresponding to the control If metrics is not found return nil
TLayoutPanel.ChildMetrics } {--------------------------------------- TLayoutPanel.GetConstraint } { Get constraint by index
TLayoutPanel.BuildConstraints} {--------------------------------------- TLayoutPanel.GetFontHeight } { Get current font height
TLayoutPanel.GetConstraint } {--------------------------------------- TLayoutPanel.GetPlanItem } { Get constraint of plan by index
TLayoutPanel.ReadMetrics } {--------------------------------------- TLayoutPanel.HasData } { Determines at run time whether the ChildMetrics property has data to store. Differs for Delphi16 and Delphi32. In Delphi32 compares the Ancesor's (if any) ChildMetrics with native one and returns True if there are some differences between them
TLayoutPanel.SetLayoutEnabled } {--------------------------------------- TLayoutPanel.IsLayoutEnabled } { Is layout enabled ?
TLayoutPanel.GetChildLayoutMetrics } {--------------------------------------- TLayoutPanel.LayoutUnitsToPixels } { Calculate pixels value by layout units
TLayoutPanel.DefineProperties } {--------------------------------------- TLayoutPanel.ReadMetrics } { Read metrics from stream
TLayoutPanel.RemoveConstraints} {--------------------------------------- TLayoutPanel.RemoveAllConstraints } { Remove all constraints
TLayoutPanel.AddConstraint } {--------------------------------------- TLayoutPanel.RemoveConstraint } { Remove constraints for a given child metrics
TLayoutPanel.EnableLayout } {--------------------------------------- TLayoutPanel.SetLayoutEnabled } { Set enable to true or false and force rebuilding constraints and layout State can be written directly only at design time
TLayoutPanel.Layout } {--------------------------------------- TLayoutPanel.SetVacantPointers } { If any child metrics has Child field = nil then try to set it to the correspondent control
TLayoutPanel.GetFontHeight } {--------------------------------------- TLayoutPanel.WereAsIsMoved } { Check if edges having AsIs constraints were moved since last building a plan
TLayoutPanel.ReadMetrics } {--------------------------------------- TLayoutPanel.WriteMetrics } { Write metrics to stream
Properties |
Events |
Variables |