Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling left and right in a grid -- text box to follow
Message
De
02/08/2006 17:08:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/08/2006 10:18:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01142403
Message ID:
01142535
Vues:
8
>I have a grid that allows the user to scroll right and left. I want to have text boxes at the bottom of the grid that contain totals for the columns. Is there a way to make the text box move with the grid when it scrolls?

Once, don't remember why, I had a second grid, single row, no header, no scrollbars, column widths equal to the grid above. It worked like a charm - but I used it only to display a total of something that was omitted from the upper grid. And these grids didn't scroll horizontally.

The reason I'm writing this is just the idea that in the upper grid's scroll event you may be able to scroll the lower grid the same, and so to synchronize them. Not sure this would be easy, but I guess it'd still be easier than to move a bunch of textboxes.

The other idea is to have your textboxes in a container in a container below the grid (not a typo: container in a container). The inner container would be as wide as the total width of your columns, and the outer container as wide as the grid's visible columns. When the grid scrolls, set the inner container's .left to minus total width of the invisible columns on the left side. Both containers should have borderstyle 0, backstyle transparent.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform