From: bungsuputra l. <bl...@to...> - 2005-06-17 02:42:53
|
Hello, I am using Wx::Grid and I want the editor to show immediately when the cell is selected. Is it possible? I have tried this code below with no luck. Wx::Event::EVT_GRID_SELECT_CELL($this, sub { my($this,$event)=@_; my $editor = $this->{'grid'}->GetCellEditor($event->GetRow, $event->GetCol); $editor->Show(1); $event->Skip(); }); I also tried to use an editor from Wx::PlGridCellEditor (taken from an example in this mailing list). However, I cannot call the Show subroutine even though the subroutine exists. The error message is: Usage: Wx::GridCellEditor::Show(THIS, show, attr) at ... line .... Has anyone been able to show the editor immediately when a cell is selected? TIA, bungsu |