My previous message was unfinished ;o)

The second parameter of InsertColumn is the cell format not Column index.

I put a small sample with InsertColumn and InsertRow as attached file.

Laurent.

----------------------------------------------------------------------------
-------
From: "Chris Wearn"

> # Create Grid control
> $gridProcDataView = new Win32::GUI::Grid (
>   -parent    => $ResultWindow,
>   -name      => "gridProcDataView",
>   -left      => 0,
>   -top       => 246,
>   -width     => 590,
>   -height    => 174,
>   -vscroll   => 1,
>   -hscroll   => 1,
>   -fixedrows => 1,
>   -columns   => 10,
>   -editable  => 0,
> ) or die "can't create new Grid for - gridProcDataView.";
>
> # Hmmm doesn't appear to work without this.
> $gridProcDataView->Resize (590, 174);

It's a bug in Grid.pm, i misspell -height (i write -heigth line 159)
Use -size => [590, 174] it's work.
I correct this in a next release.


Reply via email to