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
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.C
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 mu
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 bas
Am 23.02.2016 12:39, schrieb Benoît Minisini:
> Le 22/02/2016 17:43, Rolf-Werner Eilert a écrit :
>> Currently, I'm porting an old calendar project from Gambas2 to Gambas3.
>>
>> There is a GridView which shows days and times. It has 24 rows, so in
>> order to show a Baines Line, the code was
>>
>
Le 22/02/2016 17:43, Rolf-Werner Eilert a écrit :
> Currently, I'm porting an old calendar project from Gambas2 to Gambas3.
>
> There is a GridView which shows days and times. It has 24 rows, so in
> order to show a Baines Line, the code was
>
> GridView.Row = Hour(Now)
>
> baines.Y = GridView.Y +
To make things clearer:
What my program needs is Y coordinates relative to the upper edge of the
GridView, not relative to the grid's upper edge (which may be scrolled
to somewhere above under the GridView's upper edge).
Regards
Rolf
Am 23.02.2016 11:17, schrieb Charlie:
> What's a Baines Line
Ah, ok... :) It's not so important for this topic, but: Have you seen a
calendar application which has a hovering thin horizontal line showing
the hour + minute graphically above the day's dates? That's a Baines
Line. Maybe named after its inventor?
But there are other elements which are shown
What's a Baines Line?
--
View this message in context:
http://gambas.8142.n7.nabble.com/GridView-and-Current-Y-tp55508p55509.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
Site24x7 APM Insight: Ge
Currently, I'm porting an old calendar project from Gambas2 to Gambas3.
There is a GridView which shows days and times. It has 24 rows, so in
order to show a Baines Line, the code was
GridView.Row = Hour(Now)
baines.Y = GridView.Y + GridView.Current.Y + ((GridView.Current.Height /
60) * Minute
10 matches
Mail list logo