[Gambas-user] GridView and Current.Y

Rolf-Werner Eilert eilert-sprachen at ...221...
Tue Feb 23 15:23:20 CET 2016


Am 23.02.2016 12:56, schrieb Benoît Minisini:
> Le 23/02/2016 12:49, Rolf-Werner Eilert a écrit :
>>> GridView.Current.Y - GridView.ScrollY + GridView.ClientY should do the
>>> job. It returns the top cell relative to the GridView top.
>>>
>> Wow, that's tricky :) But it runs, so thank you very much!
>>
>> Regards
>> Rolf
>>
> It's not tricky, it's based on the logic of the ScrollArea the GridView
> is now based on:
>
> - Logical coordinates for the cell.
> - The amount of scrolling.
> - The client area that takes the border into account.
>
> If your GridView has a top header, you have to take its size into
> account too, by using GridView.Columns.Height.
>
> Regards,
>

Oh yes, I knew that, as you had told me about GridView.Rows.Width the 
other day.

Ok, not tricky, more versatile - but still one has to know that :) I 
will now try to adapt the other elements, let's hope I can solve that on 
my own...

Regards
Rolf





More information about the User mailing list