Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Rolf-Werner Eilert
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

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread 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.C

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Rolf-Werner Eilert
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

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread 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 bas

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Rolf-Werner Eilert
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 >> >

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread 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 > > GridView.Row = Hour(Now) > > baines.Y = GridView.Y +

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Rolf-Werner Eilert
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

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Rolf-Werner Eilert
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

Re: [Gambas-user] GridView and Current.Y

2016-02-23 Thread Charlie
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

[Gambas-user] GridView and Current.Y

2016-02-22 Thread Rolf-Werner Eilert
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