From: Mark W. <ma...@ne...> - 2005-07-21 06:44:30
|
Hello, I have been trying to create a GridCellDateEditor derived from Wx::PlGridCellEditor but I have been experiencing issues with SetSize. I want to create an editor that uses wxDatePickerCtrl but the size of the editor is too small to show the control properly. The base class method SetSize makes some adjustments to the size of the editor by making it a few pixels larger. Look at the wxGridCER demo and compare the standard cell editor to the custom cell editor. I wanted to use the base class method SetSize by simply not defining a SetSize method but this caused other problems, I then tried calling $self->SUPER::SetSize but it had similar problems. Is there any way to use the base class method SetSize from a derived table or will I have to rewrite this logic myself? The code is fairly complex hence my reason for attempting to use it (the whole reason encapsulation was created in the first place). Any assistance greatly appreciated. Many thanks Mark |