[Gambas-user] Looking for GridView Header Width and Height

Rolf-Werner Eilert rwe-sse at osnanet.de
Mon Feb 21 18:59:43 CET 2022


How can I find a GridView's Header width and height?

If I use .Top or .Left, the coordinates will only be correct with 
headers off. When I set Headers to Both, the coordinates won't fit 
anymore like here:

  Public Sub GridView2_Scroll()

    With GridView2
      Label2.X = .X + .Columns[2].Left
      Label2.Y = .Y - .ScrollY + .Rows[5].Top

How can I find the width of the GridView Row headers and the height of 
the GridView Column headers to add these to the coordinates?

Hope you understand what I mean.

Regards
Rolf


More information about the User mailing list