Objective Grid: Limiting the drawing area of the grid

Article ID: 681
Last updated: 22 Jun, 2018
Article ID: 681
Last updated: 22 Jun, 2018
Revision: 4
Views: 1732
Posted: 11 Jan, 2001
by Meltreger B.
Updated: 22 Jun, 2018
by Meltreger B.

Problem


How can I limit the drawing area of the grid in my view? I want to display a big title above and below the grid.
 


Cause



Action


The grid has a function SetGridRect() that lets you limit the grid area to a certain rectangle within its window.

You can then override the Paint (or Draw) method of your grid window, draw the contents of your header and then let CGXGridWnd (or CGXGridView) draw its contents.

When scrolling, only the area specified with SetGridRect() will be scrolled.

Take a look at the Sorting tab in the gridapp sample.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 681
Last updated: 22 Jun, 2018
Revision: 4
Views: 1732
Posted: 11 Jan, 2001 by Meltreger B.
Updated: 22 Jun, 2018 by Meltreger B.

Others in this category