Walter Meester
HoogkarspelNetherlands
Nick,
>1. On what PC did you test it? It is not slow even in VFP 3 on Pentium 200 MHz.
Well, I've done some performance testing on an old P133. It seems to that on these old machines the scrolling performance of grids drop significantly.
>It cannot be any slower than any existing methods of row highlighting with DynamicBackColor because that's is exactly what it uses.
>(BTW, anybody who tried it, could you report the slowness to me? I would appreciate the feedback.)
It depends on a number of factors. It can depend on the amount of code in your Dynamic.. properties and the number of columns.
>2. Why would you care much about the empty portion of the grid? Most of developers adjust the columns width anyway, so there is no blank unused space on the right. Also, could you tell me about any existing method of row highlighting which highlights the unused portion? :)
The method I use is one described at David F. site by using a semitransparent shape over the grid. Though it is difficult to synchronise it with your active row, it seems to be faster.
>3. Thanks for reminding this. I will see what I can do, however changing the grid properties or active cell in code in most cases requires grid.Refresh() or .SetFocus() anyway.
In my class only a .refresh will do. There is no need to have the focus set. This is particular handy when the current control should not lose the focus (and fireing Valid, Range.., lostfocus events).
Walter,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only