Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking Column 1 of a grid question
Message
From
01/11/1997 11:06:29
Juan Kh
Dataprop Technologies
Sungai Petani, Malaysia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00057575
Message ID:
00057783
Views:
24
Hi Joe,

This is what I got from the VFP 5 help about the "SplitBar" property...

{
Specifies whether the split bar is displayed in a Grid control. Available at design time; read-only at run time.

Syntax

Grid.SplitBar[ = lExpr]

Settings

lExpr One of the following:

lExpr Description
True (.T.) (Default) The split bar is displayed in a Grid control, allowing you to split the Grid into two separate panes.
False (.F.) The split bar isn’t displayed in a Grid control, preventing you from splitting the Grid into separate panes.
}

I think this property is useful for the originator of this question.

Thanks,
juan

>Is the SplitBar property new to 5.0?
>
>Take care,
>Joe
>
>>John,
>>
>>Try exploring the "Partition" and "SplitBar" property of the Grid. They will help.
>>
>>juan
>>
>>>>Howdy,
>>>>
>>>>I have a grid with about 20 or so columns. Column 1 is a read only description, while columns 2 through 20 are data entry.
>>>>
>>>>Is their any way to "Lock" column 1 so that it stays on screen at all times while scrolliong through the other columns ?
>>>>
>>>>I'm familiar with the old "LOCK 1" bologna used in Browses, except this puts column1 in with the scrollable columns, as well as in the locked column. This looks ugly when the descript column appears twice.
>>>>
>>>>I've done a lot of facny footwork to get around this (special KEYBOARDing in the valid of the last column, etc.), but was wondering if their is a real solution.
>>>>
>>>>Thanks Much !
>>>>JFiduccia@Jcrew.com
>>>
>>>Johm,
>>>FoxPro Advisor published an article on a grid class that does what you want. You set a property to indicate which column you want the grid to be locked at. it prevents the user form doing anything in the left partition. The right partition is prevented from displaying the columns in the left partition. The Refresh, AfterRowColumnChange and Scrolled methods check the display and scroll each partition as needed to maintain the correct view. If you are in the left partition it moves you to the right one. A custom method called from Init is used to set up the partitions based on the anchor colum you specify.
Previous
Reply
Map
View

Click here to load this message in the networking platform