Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird horizontal scroll problem with a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01026443
Message ID:
01026690
Vues:
18
Craig:

Setting SCROLLBARS = 3 in the ACTIVATE of the form did it. I had been trying to "bump" the grid with other commands such as changing the size of a column just once, but that didnt help. But the scrollbars command did the trick. Thanks for the help.


>If you can post some code that would reproduce the problem that might prove useful. Just a shot in the dark here, but what happens if you set the grid's scrollbars right after you assign the recordsource to the grid? I'm thinking maybe the scrollbar is just getting confused about how far it is supposed to allow you to scroll to the right and setting the horizontal scrollbar on in code may be a workaround.
>
>>At first i thought it had something to do w/ the framework i am using. But i added a vanilla VFP grid to the form and set it up like the maxframe grid. It TOO has a problem scrolling to the very far right of the grid. It scrolls to approx column 27. There are 5 more columns that i cannot scroll to, but i can tab to them to see them. And this is a standard vfp grid.
>>
>>I also thought it might have something to do w/ when i was creating the cursor that the grid is bound to. I was creating the cursor in the form's INIT. I changed it so that the calling form creates the cursor first before calling the form that contains the grid. That does not work either.
>>
>>If the form displays and i change the column width of one of the fields first before scrolling, and then scroll, i can scroll to the most far right field. Strange.
>>
>>
>>
>>>>I have a grid that has 32 columns. The grid has both horizontal and vertical scroll bars. In the form's INIT, i create and load a read/write cursor, then call a custom method that sets the grid properties. The grid's columncount in design mode is set to 32 (same as in the custom method).
>>>>
>>>>When the form displays, i can drag the horizontal scrollbar all the way to the right. Problem is, its not all the way to the right. There are 12 more fields to the right beyond where the scrollbar ends. I can tab across the grid and get to the fields that are beyond the scrollbar's reach, but you'd think the scroll bar would go over to the right to show these same fields. Actually, when i scroll to the right as far as i can, i can see part of another field, but the scrolling stops at that point. Again, i have to use the tab key to get to the other columns.
>>>>
>>>>Anyone seen this problem?
>>>
>>>My wi(l)dest grid has only 17 columns, and the horizontal scrollbar works as advertised. I also set a bunch of properties - column widths set from an .ini file, column order set the same way - near the end of grid's .init(). Also VFP8Sp1, dbfs, w2kSp4.
>>>
>>>Update: now I see another element of environment we have the same. I'm on Lynnhaven, and you?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform