Buffering

HeaderHeight

This property specifies the height, in pixels, of a grid's column headers.

Usage

grdGrid.HeaderHeight = nHeight nHeight = grdGrid.HeaderHeight
Why "HeaderHeight" instead of just "Height?" At first, we felt that this was a slip-up by the development team, the anti-polymorphic urge to name every variable in an application differently. "This property really should be Height, just like in all the other objects," we thought. But look at its scope—HeaderHeight is defined at the Grid level of containership, not for each individual column, since all Headers must share the same height property, so it is HeaderHeight. We still feel that it is somehow "out of scope" and violating encapsulation for a header's property to be stored outside the object in its grid container, but headers, columns and grids share a special relationship—the contained objects, like goldfish in a bowl, can exist only inside the container, so this dependence, while not truly Pure Object Oriented Programming (POOP), works. 'Nuff said.

Example

ThisForm.Grid1.HeaderHeight = 20

See Also

Column, Grid, Header


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net