Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid row change
Message
De
19/03/2002 01:52:57
 
 
À
18/03/2002 07:26:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00633739
Message ID:
00634349
Vues:
22
Hi Marcia,

Thanks a lot...its worked now....may GOD bless you for help to all of us.

with best regards,
Sajjad


>could you test once at your end and reply. Once more thanks.
>
>When I tested the code I posted, it worked for me. Try this instead:
>
>
>LOCAL lnMaxRows
>
>IF nKeyCode = 13
>  WITH This.Parent.Parent
>    *** Calculate the maximum number of rows in the grid
>    lnMaxRows = INT( ( .Height - .HeaderHeight - ;
>      IIF( INLIST( .ScrollBars, 1, 3 ), SYSMETRIC( 8 ), 0 ) ) / .RowHeight )
>    IF .RelativeRow >= lnMaxRows
>      *** This means we are on the last row in the visible portion of the grid
>      *** So we have to scroll the grid down one line   	
>      .DoScroll( 1 )
>    ENDIF
>    .ActivateCell( .RelativeRow + 1, 1 )
>  ENDWITH
>ENDIF
>
Sajjad Ahmad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform