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

Rolf-Werner Eilert rwe-sse at osnanet.de
Tue Feb 22 12:28:06 CET 2022


Am 21.02.22 um 19:16 schrieb Benoît Minisini:
> 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,
> 

Thank you, that solved it.

Regards
Rolf



More information about the User mailing list