Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hourglasses when clicking on the Header
Message
 
 
To
04/02/2005 13:13:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00981532
Message ID:
00983959
Views:
67
>My favourite candidate to look for when a grid is slow are the dynamic properties. If any of them is a method or function call, just try to make it a simple expression or comment out the code where you set it. I've seen incredible differences in speed when I replaced a method call which returned a rgb() for a dynamic backcolor with a field which contained that rgb value filled in advance. Keep in mind that for each refresh, each dynamic property gets evaluated for each visible cell.

I think your suggestion doesn't apply here. The hourglass I'm referring to appears when I click on the Header of the column. I do not use any dynamic properties for the grid at all (though I didn't check the parent class code closely). The cGrid grid behaves normally, while my grdSorting produces that weird behavior. I posted all the code in the begining of the thread. I made a small change to use a reference to last clicked header rather than clearing pictures in all headers. It didn't make a difference, may be even worsen the situation.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform