Forum Discussion

rajeshr's avatar
rajeshr
Occasional Contributor
8 years ago

In SftTreeControl32OCX Grid, How to click on a column which is not visible

I'm working on  SftTreeControl32OCX Grid, The properties that are useful for finding a column and performing a horizontal scroll are column width,object width and HScroll. Using these how do I find the column which is not visible on screen.

1 Reply

  • rajeshr's avatar
    rajeshr
    Occasional Contributor

    I have investigated on the object and found a method called makeColumnVisible which would bring the column into the screen such that the column's end would be the end of the grid.

    My logic to find the center of that column is 

    X= objectWidth - 20 - (columnWidth / 2)

    I have subtracted 20 because that is the width of the scroll bar which I manually calculated.

    So how would I get this value without hard-coding it?

     

     

     

    Thanks