Dialog CATDlgGridConstraints

Usage: you must use this class as is. You should never derive it.


public class CATDlgGridConstraints

Class to specify the layout constraints of a dialog object in its cell.
Role: Grid constraints are dedicated to the grid layout. Each dialog object can be positioned thanks to a grid made of cells located at the intersections of rows and columns.

The grid constraints instance assigned to a given dialog object determines the cell in which the top left corner of the dialog object lies, the number of rows and columns on which the dialog object is spread, and the way the dialog object is attached to the cell sides, this determining its behavior when it, or its container, is resized.


Constructor and Destructor Index


o CATDlgGridConstraints()
Constructs an empty CATDlgGridConstraints object.
o CATDlgGridConstraints(CATDlgGridConstraints&)
Copy constructor.
o CATDlgGridConstraints(short int,short int,short int,short int,unsigned int)
Constructs a grid constraint for the dialog object using its top left anchor cell, row and column extents, and justification.

Data Member Index


o Column
The column index under the top left corner of the dialog object.
o H_Span
The horizontal span (in number of columns) of the dialog object.
o Justification
The position of the object in its cell.
o Row
The row index under the top left corner of the dialog object.
o V_Span
The vertical span (in number of rows) of the dialog object.

Constructor and Destructor


o CATDlgGridConstraints
public CATDlgGridConstraints()
Constructs an empty CATDlgGridConstraints object.
o CATDlgGridConstraints
public CATDlgGridConstraints( const iCopy)
Copy constructor.
Parameters:
iCopy
The CATDlgGridConstraints to copy.
o CATDlgGridConstraints
public CATDlgGridConstraints( iTopRow,
iLeftColumn,
iRowSpan,
iColumnSpan,
iJustification)
Constructs a grid constraint for the dialog object using its top left anchor cell, row and column extents, and justification.
Parameters:
iTopRow
The initial row index under the upper left corner of the object.
iLeftColumn
The initial column index under the upper left corner of the object.
iRowSpan
The initial horizontal span (in number of columns) of the object.
iColumnSpan
The initial vertical span (in number of rows) of the object.
iJustification
The initial position of the object in its cell.
Legal values : It can be set to either :
CATGRID_LEFT
to attach the object to the left side of its cell,
CATGRID_RIGHT
to attach the object to the right side of its cell,
CATGRID_TOP
to attach the object to the upper side of its cell,
CATGRID_BOTTOM
to attach the object to the lower side of its cell,
CATGRID_4SIDES
to set the object size equal to the size of its cell,
CATGRID_CST_WIDTH
to keep the object width constant, independently of its cell width,
CATGRID_CST_HEIGHT
to keep the object height constant, independently of its cell height,
CATGRID_CST_SIZE
to keep the object size constant, independently of its cell size,
CATGRID_CENTER
to center the object.

Data Members


o Column
  public short int Column
The column index under the top left corner of the dialog object.
o H_Span
  public short int H_Span
The horizontal span (in number of columns) of the dialog object.
o Justification
  public unsigned int Justification
The position of the object in its cell.
Legal values : It can be set to either :
CATGRID_LEFT
to attach the object to the left side of its cell,
CATGRID_RIGHT
to attach the object to the right side of its cell,
CATGRID_TOP
to attach the object to the upper side of its cell,
CATGRID_BOTTOM
to attach the object to the lower side of its cell,
CATGRID_4SIDES
to set the object size equal to the size of its cell,
CATGRID_CST_WIDTH
to keep the object width constant, independently of its cell width,
CATGRID_CST_HEIGHT
to keep the object height constant, independently of its cell height,
CATGRID_CST_SIZE
to keep the object size constant, independently of its cell size,
CATGRID_CENTER
to center the object.
o Row
  public short int Row
The row index under the top left corner of the dialog object.
o V_Span
  public short int V_Span
The vertical span (in number of rows) of the dialog object.

This object is included in the file: CATDlgGridConstraints.h
If needed, your Imakefile.mk should include the module: DI0PANV2

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.