Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid's properties
Message
 
À
05/01/2001 11:45:07
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00459858
Message ID:
00460198
Vues:
14
.>>>>>>>>>>>>>>>>>
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
>>>>>>>>>>>>>>>>>>>>
If you make your grid read-only it will allow you to scroll around and hightlight a record but prevent data editing.
Thisform.grid1.readonly = .t.
But if you set enabled = .f. on you will not be able to hightlight or scroll or edit.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform