Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid's properties
Message
From
05/01/2001 11:45:07
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid's properties
Miscellaneous
Thread ID:
00459858
Message ID:
00459858
Views:
48
VFP 6.0

Hi, I created the new form and it seems much better. Right now, I have this question... what is the best way to freeze the grid, but not the scroll bars? I want the user to be able to move (scroll) around in the grid, but not be able to put the cursor in there, but be able to highlite the record row (I have it color activated). I have 'Add/Edit/Delete' buttons for to modify the data in the grid (thus, enables with 'Save/Revert'). I have tried all of them, but for some reason, I don't know what to decide. The first one is what I have right now, but it only allows the keyboard arrows navigator to go up and down, but not across to see the long row (but can use the scroll bar, but yet, if it allows the up/down keys, why not the left/right as well? thats my point). It seems that I need to end up with the last suggestion (below). What I am doing is using the grid like a listbox to view the data and to be able to edit it 'on-the-spot'. Here's what I have come across:


ThisForm.Grid1.SetAll("Enabled", .F., "Column")

or

ThisForm.Grid1.ENABLED = .F.

or

ThisForm.Grid1.ReadOnly = .T.

or

ThisForm.Grid1.Column1.Text1.ENABLED = .F.
ThisForm.Grid1.Column2.Text1.ENABLED = .F.
ThisForm.Grid1.Column3.Text1.ENABLED = .F.
ThisForm.Grid1.Column3.Combo1.ENABLED = .F.
ThisForm.Grid1.Column4.Text1.ENABLED = .F.
ThisForm.Grid1.Column5.Text1.ENABLED = .F.

or

put a "grid cover" with transparent shape covering the grid cells (but not the scroll bars) and use ZOrder
Today is tomorrow's yesterday.
Next
Reply
Map
View

Click here to load this message in the networking platform