Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Flashing Problem
Message
 
 
À
06/10/2002 12:34:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00708199
Message ID:
00708317
Vues:
9
Hi!

When you refresh a view, the current record position is re-set to the topmost record. Remember current record position in view before refreshing it, refresh it, then use "GO (remembered recno)" command. If view contains fewer records than required or reciords change often, you probably would like to set to the record with the same ID value, or when record is deleted - to closest another record to have at least similar look.

Also, keep in mind that when you scroll the grid by scroll bars, set focus to anotehr control, and then set focus back to the grid, by keyboard or programmatically, grid will usually jump to current record in the view cursor. I think this is not a usual case and rarely happens. If you need to fix also this problem, it required complex code to determine the topmost row currently displayed in the grid (ActiveRow and RelativeRow would not help here).


>Hi,
>
>I have this grid displaying a remote view which has to be refreshed every 1 min thru a timer.But everytime the grid is refreshed the grid flashes if it's got the focus (a record is selected) or it just scrolls to the first record if it does not have the focus.
>
>
>How can I get rid of this flashing problem ? So that the grid is refreshed smoothly every min.
>
>Saeed Paksima
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform