Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if row changed or column in beforerowcolchna
Message
De
05/06/2003 06:10:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/06/2003 03:34:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00796299
Message ID:
00796550
Vues:
13
>i am still with old vfp6. thanks all for you suggestions.

Good old VFP6 has GridHitTest(). In VFP5 it needs further math :
*VFP6 and later
*BRCC
Lparameters nColIndex
Store 0 to nWhere, nRelrow, nRelCol
* if would check mousedown outside grid (GridHitTest() returns .f.)
If mdown() ;
    and This.GridHittest(mcol(wontop(),3), mrow(wontop(),3), ;
        @nWhere, @nRelrow, @nRelCol) ;
    and nWhere = 3 ;
    and this.RelativeRow # nRelrow
  llLetItGo = ( nRelrow % 2 # 0 )

  Wait window 'Attempt to move from row '+;
    trans(This.relativerow)+;
    ' to '+;
    trans(nRelrow)+chr(13)+;
    'Will '+iif(llLetItGo,'','not ')+'let it go' timeout 2
  If !llLetItGo
    Nodefault
  Endif
Else
  If inlist(lastkey(),24,5,18,3,141,145,148) && 148 - Special case Ctrl+Tab
    Wait window 'Changing row with keys' timeout 1
  Endif
Endif
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
Répondre
Fil
Voir

Click here to load this message in the networking platform