Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 19:25, abbat81 a écrit : > Thank you, it works OK. :) > Beware that you must use GridView.ClientWidth and GridView.ClientHeight instead of GridView.Width and GridView.Height if you want to take the GridView border into account. Regards, -- Benoît Minisini --

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread abbat81
Thank you, it works OK. :) -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45400.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Public Sub GridView1_Arrange() GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 'Print GridView1.Rows[GridView1.Rows.Max].Y + GridView1.Rows[GridView1.Rows.Max].Height End 2014-01-26 Fabien Bodard : > Is this good for you ? : > > GridView1

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Is this good for you ? : GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 2014-01-26 abbat81 : > > > How to show all rows and to do not show white empty area if it is not > needed. > > >

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread abbat81
How to show all rows and to do not show white empty area if it is not needed. -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45377.html Sent from the gambas-user ma

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Do you want the 5 rows to take all the clientheight ? I'm don't really understand what you means and what you want. Can you send us a small project that illustrate the problem or at less screenshots. Le 26 janv. 2014 16:04, "abbat81" a écrit : > GridView & TableView > > I do not know how many ro

[Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread abbat81
GridView & TableView I do not know how many rows a control will has It can has a 5 or 15 rows. So, how to set contol.height to show all 15 rows and if there are 5 rows to do not show empty area without rows in a control. I can not calculate a pixels of one row because font size can be different