PSEC - Powershell Enhanced Capability
Version 1.2.1

Area Class extends Elem (src: gui-classes.psm1)

Extended By

Form Panel Div Pane

Description

Areas are containers that have certain layout characteristics and contain other areas or Gizmos

Details

The Area class implements the Windows.Forms.Panel object.

It acts as a container for other Area objects or Gizmos and contains the layout algorithm .

Layout Algorithm

The layout algorithm sets the size of outermost window Form Object and the size and position of all components contained within the Form Object. It is implemented by the layout Method.

The Workflow application is a heavy user of the various GUI facilities and can be referenced for working examples.

Layout Goal

It layout algorithm assumes the Form Object is resizable. The layout algorithm's goal is to determine the minimum size of the outermost window Form Object.

If the existing size is less than the minimum required, the height and width are set to the minimum required values.

Layout Calculations

An Area has a notion of horizontal or vertical (default) layout.

The layout calculations are controlled by the following settings.

  • Horizontal mode
Set with the setHorz Method.

The width is the sum of the contained Elem Object widths plus margins plus gaps.

The height is the highest of the contained Elem objects.

  • Vertical mode
The default when the setHorz Method is not used.

The width of the widest of the contained Elem objects.

The height is the sum of the contained Elem Object heights plus margins plus gaps.

  • Gap
Set with the setGap Method.

Adds a gap (padding) between Elem objects of the specified x and y value.

  • Margin
Set with the setMar Method.

Adds a margin around Elem objects of the specified x and y value.

  • Absolute Position
Set with the setAbs Method. It prevents the spacing of elements.

Sets the absolute position of the Elem Object within the immediate Area Object. An X or Y value of 0 means the Elem Object floats in the horizontal or vertical direction respectively.

An X or Y value of 1 will cause the layout algorithm to calculate the closest value without overlapping in the horizontal or vertical direction respectively. Otherwise additional space, if any, is inserted between each element in the container.

An X and Y value of 0 is the default value.

  • bFill
Set with the setFill Method.

A value of $true will cause the components to expand themselves to fill the container in which they reside.

If there are multiple Elems with the bFill option the additional space is divided by their count so that each bFill component expands by an equal amount in each direction.

  • Dock
Set with the dock Method.

A value of "right" will cause right adjustment of the contained Elem objects.

Other values such as "centre" are untested.

This is handled by the Peer Object positioning of the underlying .NET support code.

Method Index

addChild TODO - find out what thi does

adjustFormAreas TODO - find out what thi does

calcElemPositions TODO - find out what thi does

calcMinHeight TODO - find out what thi does

calcMinWidth TODO - find out what thi does

detailStr TODO - find out what thi does

dump TODO - find out what thi does

layout Implements the layout algorithm. See @@link.layout-alg.

resetChildren This removes the children from an @@Elem and the @@peer

setElemPositions TODO - find out what thi does


addChild Method index (src: gui-classes.psm1)

Signature

[void] addChild ( [Elem]$kid)

Parameters

Parameter Format Description

$kid Elem parm description missing

Description

TODO - find out what thi does

Details


adjustFormAreas Method index (src: gui-classes.psm1)

Signature

[void] adjustFormAreas ( [Form]$form, [int32]$maxW, [int32]$maxH, [boolean]$bNoJam)

Parameters

Parameter Format Description

$form Form parm description missing

$maxW int32 parm description missing

$maxH int32 parm description missing

$bNoJam boolean parm description missing

Description

TODO - find out what thi does

Details


calcElemPositions Method index (src: gui-classes.psm1)

Signature

[void] calcElemPositions ()

Description

TODO - find out what thi does

Details


calcMinHeight Method index (src: gui-classes.psm1)

Signature

[int32] calcMinHeight ()

Description

TODO - find out what thi does

Details


calcMinWidth Method index (src: gui-classes.psm1)

Signature

[int32] calcMinWidth ()

Description

TODO - find out what thi does

Details


detailStr Method index (src: gui-classes.psm1)

Signature

[String] detailStr ()

Description

TODO - find out what thi does

Details


dump Method index (src: gui-classes.psm1)

Signature

[void] dump ( [string]$mar)

Parameters

Parameter Format Description

$mar string parm description missing

Description

TODO - find out what thi does

Details


layout Method index (src: gui-classes.psm1)

Signature

[void] layout ()

Description

Implements the layout algorithm. See Layout Algorithm.

Details


resetChildren Method index (src: gui-classes.psm1)

Signature

[void] resetChildren ()

Description

This removes the children from an ?@Elem@? and the ?@peer@?

Details

This is used when a rebuild is required. All down-tree objects need to be repopulated.


setElemPositions Method index (src: gui-classes.psm1)

Signature

[void] setElemPositions ()

Description

TODO - find out what thi does

Details

PSEC - Powershell Enhanced Capability
1.2.1

Copyright © 2018-2021, 2022, Rexcel System Inc.

 

 

 

 

 

X