Click to See Complete Forum and Search --> : Panels/Partitions in grids
Roxanne
03-28-2001, 04:00 PM
I have a grid with about 20 items on it. I want to partition the grid into
2. The first panel is going to hold 4 items that I want to stay because
they identify the rest of the data. I want both panels to scroll vertically
together, but I only want the right panel to be able to scroll horizontally.
Can I have a horizontal scroll bar on only the right side panel?
Tamar E. Granor
03-29-2001, 07:23 AM
On 28 Mar 2001 13:00:53 -0800, "Roxanne" <filipiak@mimilk.com> wrote:
>
>I have a grid with about 20 items on it. I want to partition the grid into
>2. The first panel is going to hold 4 items that I want to stay because
>they identify the rest of the data. I want both panels to scroll vertically
>together, but I only want the right panel to be able to scroll horizontally.
> Can I have a horizontal scroll bar on only the right side panel?
Yes, you can do what you want. Use code like this:
* assumes it's in a grid's method
WITH THIS
.PanelLink = .F.
.Panel = 0 && left
.Scrollbars = 2
.Panel = 1 && right
.Scrollbars = 3
.PanelLink = .T.
ENDWITH
However, be aware that even without a horizontal scrollbar, the user
can make the left panel scroll by tabbing out of the last field you're
showing. If you want to really lock the left panel, take a look at an
article by Dan Leclair in the April '97 issue of FoxPro Advisor.
Tamar
devx.com
Copyright Internet.com Inc. All Rights Reserved