Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine position of a column in grid
Message
From
25/07/2000 16:40:25
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
25/07/2000 11:39:05
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00396623
Message ID:
00396783
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform