Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many rows are there in grid?
Message
From
08/07/2008 06:27:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/07/2008 23:28:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01290490
Message ID:
01329668
Views:
12
James,
Sorry I didn't understand the question. Calculating visible rows count doesn't have anything to do with where the record pointer is. Grid might even be unbound. You have rowheight, headerheight, height, sysmetric() to calculate it.
Cetin

>Cetin --
>
>A question about a message of yours from half a year ago.
>
>I asked about the use of DynamicFontShadow to determine which is the top record displayed. You suggested calculating it ...
>
>However, I don't think that works when the user has scrolled so that the active record is off the screen, does it? In my particular case, the user has scrolled down along way (the active record is way off the top of the screen). So, recno() doesn't point to a record on the screen ... and using ActivateCell, as I had been doing, jumps the grid back to the current record in the grid.
>
>Any suggestion?
>
Ç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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform