Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor to next row in grid if last column looses focus
Message
De
10/06/2009 06:53:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Application:
Desktop
Divers
Thread ID:
01404923
Message ID:
01404932
Vues:
119
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>Sometime back I had received help here to achieve this, but it fell apart when the users started to switch column order and some columns being disabled thus never getting focus. The basic idea is this, assuming head-down data-entry, the user goes through each and every column that is available and when the last column looses focus for the current row the cursor moves to the next rows first column. The last and first columns are those columns that are user enterable but can be a readonly column and not necessary the first and last column of design-time.
>
>Please advise.
Procedure myGrid.AfterRowColChange
Lparameters nIndex
If m.nIndex = 1 And ;
      this.RowColChange = 2 And ;
      INLIST(Readkey(),5,15,261,271)
  Keyboard '{DNARROW}'
Endif
Endproc
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform