Objective Grid: Custom cell types

Article ID: 467
Last updated: 25 Apr, 2018
Article ID: 467
Last updated: 25 Apr, 2018
Revision: 4
Views: 1725
Posted: 11 Jan, 2001
by Meltreger B.
Updated: 25 Apr, 2018
by Meltreger B.

Problem


Can I write my own cell types?


Cause



Action


Yes. In Objective Grid every cell is derived from the CGXControl class. By deriving from CGXControl or existing cell types like CGXEditControl, you can implement your own custom cell types and use them in the grid.

CGXControl declares many virtual functions that you can override. For example, the Draw() method is called to draw the cell contents. LButtonDown() is called when the user clicks into the cell.

See the class reference for CGXControl and the User's Guide section Advanced Techniques for more details on how to implement your own cell types.
 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 467
Last updated: 25 Apr, 2018
Revision: 4
Views: 1725
Posted: 11 Jan, 2001 by Meltreger B.
Updated: 25 Apr, 2018 by Meltreger B.

Others in this category