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

Benoît Minisini g4mba5 at gmail.com
Mon Feb 21 19:16:03 CET 2022


Le 21/02/2022 à 18:59, Rolf-Werner Eilert a écrit :
> 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
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

Use 'GridView.Columns.Height' and 'GridView.Rows.Height'.

Regards,

-- 
Benoît Minisini


More information about the User mailing list