[Gambas-user] GridView and Current.Y

Rolf-Werner Eilert eilert-sprachen at ...221...
Tue Feb 23 17:51:17 CET 2016


Good idea! Thank you!

Rolf

Am 23.02.2016 15:31, schrieb Fabien Bodard:
> Just make a Private function :
>
> Private Function GridViewCurrentY() as integer
>
>    return GridView.Current.Y - GridView.ScrollY + GridView.ClientY
>
> end
>
>
> IN
>
> GridView.Row = Hour(Now)
>
> baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height /
> 60) * Minute(Now))
>
>
> REPLACE ALL GridView.Current.Y
>
> BY GridViewCurrentY()
>
>
>
>
> 2016-02-23 15:23 GMT+01:00 Rolf-Werner Eilert <eilert-sprachen at ...221...>:
>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>





More information about the User mailing list