SECDynGridInsertConstraints Class

class SECDynGridInsertConstraints

Insertion constraints associated with a new node addition to the grid.

Defined in: DynGrid.h

See Also

SECDockInsertionConstraints

Class Members

Operations

virtual void  CopyFrom(const SECDynGridInsertConstraints& Src)

Copy insertion constraints from a different insertion constraint object.

virtual void  Reset()

Reset constraints to acceptable defaults.

Configuration

SECLayoutNode* m_pNodeRelative

Insertion will occur relative to this node. If NULL, insertion will occur at head or tail.

BOOL m_bInsertAfter

Used in conjunction with m_pNodeRelative, controls if insertion should be before or after. If m_pNodeRelative is NULL, TRUE denotes tail, FALSE head.

void  SetInsertPosition(UINT nPos,BOOL bAfter=TRUE,BOOL bPrimaryCnstr=TRUE)

Alternate to m_pNodeRelative relative insertion specification

BOOL  GetInsertPosition(UINT& nPos) const

Get the insertion position configured by SetInsertPosition

BOOL m_bCreateNewLine

If TRUE, insertion will create a new line before or after the parent line of the set relative insertion node/position.

BOOL m_bDynamicNode

If TRUE, node will be bounded by a sizing splitter if it has an adjacent neighbor. If FALSE, no sizing splitter will be provided.

int m_nForcedSize

Forced insertion size. If positive, node will be inserted with this size (width for horizontal, height for vertical). If negative (default) an average size will be used.

int m_nForcedNewLineSize

Forced newline insertion size. Similar to m_nForcedSize, but applied only to new line creation (m_bCreateNewLine==TRUE, or first insertion)