Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrollbox disappears, scrollbar disabled in grid
Message
From
15/11/2008 17:23:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
15/11/2008 16:40:56
Ken Penrod
Technical Perspectives, Inc.
Richardson, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01362035
Message ID:
01362101
Views:
12
>I created a readwrite cursor (called kList) before I even instantiated the form. I ran my query and then inserted into kList from my query results. The first time everything is great. Got 45 records and displayed the first 20. Scrollbar was active and scrollbox was available.
>
>I then ran the same query a second time. Got the same 45 records. Zapped kList to clear it out and inserted back into it from query results. The grid displays the first 20 records but scrollbox is missing and scrollbar is disabled. kList never disappeared the whole time. It was specified as the RecordSource for the grid at design time and never changed.

OK, so now we know your grid isn't rebuilding, isn't losing settings, code etc. Now for the scrollbar.

>I'm stumped. Anyone have any ideas as to what is going on?

Every time this happens I remember there must be a trick to this, but can't remember which one works. Refresh the grid, set focus to it, go top - but don't really remember in which order. There are actually several problems here - the cursor may have seven records, grid may have room for nine, but shows only four (if your current record is the last, or maybe in other cass as well) - and the scrollbar isn't proportionate to the visible vs all records ratio. Or the scrollbar looks disabled, or... well, what you said.

I know my team has a similar bug open for quite a while and still haven't found a satisfying solution, so I'm all ears too.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform