PACK

SplitBar

This property lets you decide whether the user should be allowed to split a grid into two panels. It's one of a number of properties added in version 5.0 to which our reaction was: "Of course."

Usage

lUserCanSplit = grdGrid.SplitBar
You have to decide this one at design-time—it can't be changed on the fly. When you turn SplitBar off, the scrollbar widens to fill the black space normally allocated for splitting the grid.

We thought it would be cool to be able to partition a grid at design-time, then turn SplitBar off to prevent users from messing with our careful setup. Alas, setting SplitBar to .F. returns Partition to 0 (although it doesn't happen until you save the form). We can't quite bring ourselves to call this one a bug since we suspect it's simply outside the design of the grid. No SplitBar means no partition.

Example

* You might set this one in a builder based * on user input oGrid.SplitBars = lAllowSplit

See Also

Panel, PanelLink, Partition


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