[Gambas-user] GridView
Benoit Minisini
gambas at ...1...
Thu Feb 21 17:59:53 CET 2008
On lundi 21 janvier 2008, Gareth Bult wrote:
> Hi,
>
> If I take a form which contains a GridView, which has expand set, the
> gridview will expand / contract with the main window.
>
> Unfortunately, "sometimes" when resizing the main window, the GridView
> element won't correctly calculate it's width causing the horizontal
> scrollbar to appear and a small portion of the header to be chopped off.
>
> This happens with Qt and Gtk.
>
> To reproduce, create an empty form, add gridview, turn headers and expand
> on.
>
> Add to form open
>
> grid.Columns.Count = 4
> grid.Columns[0].Text = "Col1"
> grid.Columns[1].Text = "Col2"
> grid.Columns[2].Text = "Col3"
> grid.Columns[3].Text = "Col4"
> grid.Rows.Count = 3
>
>
> Graphics attached.
This is not a bug actually. The width of the last column is expanded to reach
the right side of the gridview, but it is never shrinked less than its
initial width. So the horizontal scrollbar may appear. You can prevent that
by setting the width of the column #3 to a small value.
Regards,
--
Benoit Minisini
More information about the User
mailing list