[Solved for now] How to get the height of the title of a tableview
Posted
#1
(In Topic #916)
Regular

Code (gambas)
- TableView1.Columns.Count = 3
- TableView1.Columns[0].Title = "Variable Class"
- TableView1.Columns[1].Text = "ID"
- TableView1.Columns[2].Text = "DATA"
Now, I have clicked on a table cell. So the current row index is stored in TableView1.Row. I want to know, relative to the container, where the top of the current cell is. So all what I need to do is sum up the individual row heights upto but not including current cell / current row index, then add TableView1.Top. Now, if I do this :
This however is not including the height of the title row. In the For loop definition, the 0 jumps to the first row after the title row ( = second overall) and starts counting from there.
I thought of using
Code (gambas)
- TableView1.Current.Top
How can I address the problem, so that the height of the title row is counted? Thank you.
Posted
Guru

TableView1.Columns.Height
Posted
Regular

Posted
Guru

I probably should not have led with "Maybe" in the last post
/comp/gb.qt4/_gridview_columns/height - Gambas Documentation
1 guest and 0 members have just viewed this.


