[Classes] [Prev] [Next] [Methods]

CFixedGrid

Methods Index

Heritage
Description
Usage
Environment
Public Methods
Constructor, Destructor, and Initializer Methods
Cell Operations
Sizing Methods

CFixedGrid


Heritage

Superclass: CGrid

Subclasses: None


Description

CFixedGrid objects provide the means to arrange other CSubview objects into defined grid cells. All CFixedGrid cells are homogeneous in size. For more information, see CGrid and CVariableGrid.


Usage

Create a fixed grid, initialize it, and insert CView objects into its cells. Objects inside a grid can either clip to their enclosing cell or force the cell to enlarge to incorporate the largest object.

All row and column operations assume that 0,0 is the coordinate for the top-left cell.


Environment

The lines of a fixed grid are drawn with the pen, and the area within each cell is painted with the brush. You can set the color and pattern of both the pen and the brush. Also, you can set the pen width.


Public Methods

Constructor, Destructor, and Initializer Methods

CFixedGrid(CSubview* theEnclosure, 
const CRect& theRegion,
int theNumberOfRows,
int theNumberOfColumns);
CFixedGrid(CSubview* theEnclosure, 
CPoint& theTopLeftCorner,
UNITS theRowHeight,
UNITS theColumnWidth,
int theNumberOfRows,
int theNumberOfColumns);
CFixedGrid(const CFixedGrid& theGrid);
CFixedGrid& operator=(const CFixedGrid& theGrid);
virtual ~CFixedGrid(void);
BOOLEAN IFixedGrid(BOOLEAN isClipping	= TRUE,
PLACEMENT thePlacement = TOPLEFT,
BOOLEAN isGridVisible = FALSE,
POLICY theSizingPolicy = ADJUSTCellSize,
BOOLEAN isVisible = TRUE,
GLUETYPE theGlue = NULLSTICKY);

Cell Operations

CFixedGrid overrides the following basic inherited methods.

virtual CRect GetCellSize(int theRow, 
int theColumn) const;
virtual int GetRow(UNITS theVerticalPoint) const;
virtual int GetCol(UNITS theHorizontalPoint) const;

Sizing Methods

CFixedGrid overrides the following basic inherited methods:

virtual void SizeCell(UNITS theNewCellWidth, 
UNITS theNewCellHeight);
virtual void SetNumCells(int theNumberOfColumns,
int theNumberOfRows,
BOOLEAN theGridWillResize = TRUE);
virtual UNITS GetWidth(int col = 0) const;
virtual UNITS GetHeight(int row = 0) const;


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.