Important: The information in this document is obsolete and should not be used for new development.
Gridviews
Gridviews provide a mechanism for managing row- and column-based views, such as those used in spreadsheets and scrolling lists. A gridview contains a number of cells, organized in variably sized rows and columns, and has methods for modifying the width and height of a cell, for selecting a cell, for retrieving or setting the content of a cell, and for other cell-specific operations.In the UGridView unit, MacApp defines a number of classes for working with gridviews, including the following:
The Calc sample application demonstrates the use of multiple gridviews to create a spreadsheet.
TGridView
- The
TGridView
class displays a one- or two-dimensional grid of cells. The cells can contain text, pictures, or other subviews.TTextGridView
- The
TTextGridView
class displays a one- or two- dimensional grid of cells containing text only.TTextListView
- The
TTextListView
class displays a one-dimensional grid of cells containing text only.TCellSelectCommand
- The
TCellSelectCommand
class selects one or more cells in a gridview.TColSelectCommand
- The
TColSelectCommand
class selects one or more entire columns of cells in a gridview.TRowSelectCommand
- The
TRowSelectCommand
class selects one or more entire rows of cells in a gridview.