Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus on grid control
Message
De
01/06/2002 07:47:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/05/2002 22:56:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663764
Message ID:
00663783
Vues:
15
>Hi,
>
>Is there a possible way to focus the cursor in a grid pertaining to a specific relativerow everytime you scroll?
>
>example :
>
>Everytime I scroll a grid controll, I would like to set the focus on Grid.Relativerow No. 10
>
>Is there a possible way to do this? Any Idea?

You mean set current row to 10th pos ? If so :
with ThisForm.myGrid
  .setfocus   && Needed for active and relativerow
  if .ActiveRow < 10
    return
  endif
  do while .relativerow # 10 && Hit row 10 ?
    .doscroll(iif(.relativerow < 10,0,1))  && Scroll up or down
  enddo
 .refresh
endwith	
Or if you mean to set focus to 10th row whatever it's :

.ActivateCell(10,1)

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