I am having no joy with either wxDC::GetTextExtent() or =
wxWindow::GetTextExtent(). I've paid attention to the note saying "In =
wxPerl this method is implemented as GetTextExtent( string, font =3D =
undef ) returning a four element array ( $width, $height, $descent, =
$externalLeading )" yet I am getting an undef return value.
my $dc =3D new Wx::WindowDC($w);
my ($width,$height,$d,$e) =3D $dc->GetTextExtent($text);
print "text=3D$text width=3D$width, height=3D$height\n";
I've tried the above using $w->GetTextExtent($text) after a =
$w->SetFont($font) - same result. $w, $font and $text have all been =
verified to be expected values and don't seem to be part of the problem.
anyone have any experience or ideas?
thanks in advance,