Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp / Part 1 - MacApp Theory and Architecture
Chapter 8 - Displaying, Manipulating, and Printing Data


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:

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.
The Calc sample application demonstrates the use of multiple gridviews to create a spreadsheet.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996