Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Speed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00066259
Message ID:
00066354
Vues:
41
>>>In my drag-and-drop grid, I am also having a problem with speed. I have cleaned out all of the "extraneous" stuff I can find from any relevant methods, and yet my grid is very slow to move from cell to cell.
>>>
>>>What areas typically cause a grid to slow down dramatically?
>>>
>>>Paul
>>
>>The things that slow down a grid the most seem to be any sort of dynamic... property and making the grid large in terms of surface area. For example if to the right of the last column you have a lot of empty space, this seems to slow down the grid (I don't know how fox managed this one.) My resolution is 1152x864 and if I make a grid (or a browse) maximized, it is many times slower than a smaller version of the same thing.
>>
>>HTH,
>>Peter
>
>I wouldn't agree that dynamic properties will slow down a grid. Actually, VFP is smart enough (I believe) to check just visible area of recordsource (6-8 rows) and doesn't go beyond.

True it only redraws the visible space, but it still calls the dynamic properties alot. And it calls the dynamic properties more than you might think. I found that the DyanmicCurrentControl property is called for each line that is visible (when sparse is true) because if Dyn...Control returns a container or a button that cell needs to be empty if not currently on that cell or the container or button if on that cell. I like the dynamic properties, I just try to use them as little as possible to minimize the performance hit. ;-)

Peter
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform