|
From: Richard H. <ri...@ru...> - 2006-11-19 18:46:35
|
I need a user interface like a spreadsheet.
Rows contain buttons that affect data arranged in columns, one for each
date.
But the explanation for each rows can be long, often spanning several lines.
In a spreadsheet, the text can be wrapped inside the cell and the row
height adjusted.
wxGrid is close to what I need, but I CANT get the text to wrap within a
cell.
I cant seem to find a way to do this, either for Gtk2-perl or wxPerl.
In the wxWidgets forum I have found reference to
Wx::GridCellAutoWrapStringRenderer, so I tried
my $grid = Wx::Grid->new($frame,-1,[50,100],[300,300]);
$grid->setDefaultRenderer(Wx::GridCellAutoWrapStringRenderer->new());
but I get
Can't locate object method "new" via package
"Wx::GridCellAutoWrapStringRenderer" (perhaps you forgot to load
"Wx::GridCellAutoWrapStringRenderer"?) at wxGrid_test.pl line 33.
Regards
Richard
|