Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling Grid Behavior
Message
 
À
26/09/2000 12:09:03
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00420986
Message ID:
00421014
Vues:
23
Hi Charlie. Thanks for the code! This silly thing was really irritating me <grin> Thanks to both yourself and Ko!

George


>Hi George,
>As Ko says, make a fourth really narrow column. This serves as a navigation column. The only way to move to it is through a keystroke.
>Put this code in the GotFocus of its TextBox control.
>
>* The only way to get here is via a Keypress.  No mouse click can
>* get a user to the 0 width column.
>LOCAL Direction
>IF INLIST(LASTKEY(), SHIFTTABKEY, LEFTARROWKEY, UPARROWKEY, HOMEKEY)
>   Direction = -1
>ELSE
>   Direction = +1
>ENDIF
>THIS.Parent.Parent.FocusElsewhere(m.Direction)
>* -Since I have a Grid class.
>* You can reference THISFORM
>* and get back to the grid for now.
>RETURN
>
>Then in the Grid I have code to Grid.FocusElseWhere(m.Direction) to the right position.
>See Thread #414137 Message #414244 for more about these issues.
>
>
>
>>Hi, I have a grid set up with 3 columns. I am trying to set it up so that only the last column can be edited. I am running into behaviour that I don't know how to get around. The behaviour I am looking for is if a user has edited the column and then pressed ENTER, the cursor goes to the new row...trying to ease data entry. Also, right now if they have edited something in the last column and press enter, the grid moves over to the right so only the last 2 columns are available along with a bunch of blank space on the right. Is there any way to lock the grid so that it doesn't move?
>>
>>TIA,
>>George
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform