Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine position of a column in grid
Message
De
25/07/2000 16:40:25
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00396623
Message ID:
00396783
Vues:
11
Hi Christian,
To know if you need to move your image in the AfterRowColChange(), you can use code like this:
WITH This
IF NOT .ColumnOffSet = .ActiveColumn - .RelativeColumn
   .ColumnOffSet = .ActiveColumn - .RelativeColumn
   .SlideImage(.ColumnOffSet)
ENDIF
where ColumnOffSet is a custom property in the Grid class.


>Hello,
>
>I have a grid, and I position an image at a certain position on one of the headers to indicate the active sorting of the grid.
>This works fine, and I calculate the position using the column order and counting all column widths until this column together and add this value to the left position of the grid.
>
>This doesn't work when the grid is scrolled horizontal.
>Is there a way to find the real position of the column even if the grid is scrolled horizontal?
>
>Thanks for your help in advance!
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform