You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
(7) |
Mar
(5) |
Apr
(4) |
May
(15) |
Jun
(10) |
Jul
(4) |
Aug
(12) |
Sep
(39) |
Oct
(22) |
Nov
(46) |
Dec
(65) |
2002 |
Jan
(19) |
Feb
(27) |
Mar
(50) |
Apr
(73) |
May
(85) |
Jun
(52) |
Jul
(49) |
Aug
(95) |
Sep
(152) |
Oct
(81) |
Nov
(42) |
Dec
(62) |
2003 |
Jan
(45) |
Feb
(47) |
Mar
(101) |
Apr
(110) |
May
(53) |
Jun
(72) |
Jul
(125) |
Aug
(77) |
Sep
(87) |
Oct
(69) |
Nov
(55) |
Dec
(71) |
2004 |
Jan
(127) |
Feb
(68) |
Mar
(93) |
Apr
(102) |
May
(64) |
Jun
(92) |
Jul
(40) |
Aug
(113) |
Sep
(44) |
Oct
(61) |
Nov
(44) |
Dec
(100) |
2005 |
Jan
(57) |
Feb
(51) |
Mar
(101) |
Apr
(73) |
May
(45) |
Jun
(97) |
Jul
(92) |
Aug
(94) |
Sep
(46) |
Oct
(83) |
Nov
(82) |
Dec
(68) |
2006 |
Jan
(92) |
Feb
(116) |
Mar
(84) |
Apr
(66) |
May
(40) |
Jun
(57) |
Jul
(89) |
Aug
(82) |
Sep
(58) |
Oct
(94) |
Nov
(104) |
Dec
(70) |
2007 |
Jan
(86) |
Feb
(108) |
Mar
(193) |
Apr
(84) |
May
(71) |
Jun
(54) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Marcus <li...@wo...> - 2002-03-09 07:06:42
|
I forgot to mention, that the 0.10 rpm creates the subdirectory "site_perl". My perl at least is looking for "site-perl". I had to copy the files over so that perl could find wx.pm. Marcus |
From: Marcus <li...@wo...> - 2002-03-09 06:54:00
|
I just installed v. 0.10 on Linux/perl 5.6.0. Running the dialogs.pl sample I get the following error (and a crash) after selecting the font dialog: cannot locate ...method "New" via wx::FontData at line 220 Any ideas what is wrong? Is FontData simply not implemented yet? Thanks, Marcus |
From: Mattia B. <mb...@ds...> - 2002-03-08 21:33:02
|
http://prdownloads.sourceforge.net/wxperl/Wx-0.10-wxmsw2.2.9-win32-1.zip It is 0.10; the only change is that I recompiled wxWindows with support for the comctl32.dll shipped with IE 3.0; this should enable some features of wxListCtrl ( and probably wxTreeCtrl ) that were disabled. Regards Mattia |
From: <jm...@be...> - 2002-03-08 19:06:45
|
Thanks to the developers of Wx and WxPerl. I have been trying to use Tk with Tk::HTML for displaying some complex web pages. Didnt work well at all. Found WxPerl, and using the demo, I was able to load the web page beautifully!!! Thanks again. I often install my apps on machines without libraries such as Wx, Tk, or even perl. So I use perlapp or perl2exe. I have seen the previous post, so it looks promising to use Wx in these compiled apps. One of my platforms is Solaris 2.5.1. Has anybody tried the compilers to produce apps on anything besides windows? They have worked well with Perl and Tk. Has anyone used both the Wx and Tk Mainloops together? How about embedding a Wx window in a Tk window, with something similar to (-use). Thanks again! |
From: Mattia B. <mb...@ds...> - 2002-03-06 20:12:18
|
> > BTW if you are using telnet you should probably use Net::Telnet, > > but that is not what is causing you problems > that wouldn't/didn't really work, a telnet based game (MUD) does not > really > have the same structure as let's say a linux-login. Well, I can say that I wrote a MUD client using Net::Telnet... > > Why not use select() ( the 3-argument version ) or non-blocking sockets? > > I used the 2nd solution a lot of time ago ( in a pure perl program ) > > and it worked fine. > i looked into the 4-argument version of select (didn't find a 3-arg one) > and > couldn't really figure out how i would connect to a server with that. what > socket > would you recommend? i need to receive, send and of course read out the > data > coming in from the server i connect to. it wouldn't be great if you could > send me > the program you wrote, in general i understand examples better than > manuals. Sorry, I don't have the sources anymore ( it was 4 years ago... ), and don't remember the details, but for this kind of question you will surely get better answers somewhere on comp.lang.perl.* ( or maybe in the FAQs ) Regards Mattia |
From: Mo <mo...@mo...> - 2002-03-06 01:38:50
|
> BTW if you are using telnet you should probably use Net::Telnet, > but that is not what is causing you problems that wouldn't/didn't really work, a telnet based game (MUD) does not really have the same structure as let's say a linux-login. > Why not use select() ( the 3-argument version ) or non-blocking sockets? > I used the 2nd solution a lot of time ago ( in a pure perl program ) > and it worked fine. i looked into the 4-argument version of select (didn't find a 3-arg one) and couldn't really figure out how i would connect to a server with that. what socket would you recommend? i need to receive, send and of course read out the data coming in from the server i connect to. it wouldn't be great if you could send me the program you wrote, in general i understand examples better than manuals. thanks, mo |
From: Mo <mo...@mo...> - 2002-03-04 23:09:47
|
> BTW if you are using telnet you should probably use Net::Telnet, > but that is not what is causing you problems that wouldn't/didn't really work, a telnet based game (MUD) does not really have the same structure as let's say a linux-login. > Why not use select() ( the 3-argument version ) or non-blocking sockets? > I used the 2nd solution a lot of time ago ( in a pure perl program ) > and it worked fine. i looked into the 4-argument version of select (didn't find a 3-arg one) and couldn't really figure out how i would connect to a server with that. what socket would you recommend? i need to receive, send and of course read out the data coming in from the server i connect to. it wouldn't be great if you could send me the program you wrote, in general i understand examples better than manuals. thanks, mo |
From: Mattia B. <mb...@ds...> - 2002-03-04 07:51:15
|
On Sun, 3 Mar 2002, Mo wrote: [ please set your word wrap to something < 75, thanks! ] >hi all, >first of all, thanks for the new release mattia. >i got a question about wx::process. i'm programming a telnet > client for a telnet game right now, so i constantly get some the output > of the server which i append to the main textctrl. now, after the server i am connected to is done sending stuff and waiting for input, the > whole program doesn't react anymore which is logic since this is the > main > process. so i used Wx::Yield first which works while the server is > sending stuff, but when it stops then the whole script freezes again. > then i tried the new Wx::Process, but couldn't really figure out (out of > the examples) how to use it with a subroutine. > Wx::Process(&Sub, -1); There is no way: wxProcess if for external programs >gives no error message and i still get all the output, but then again > it freezes when the server waits for input. i'm using a the latest > wx-version, lastest activestate perl and to connect IO::Socket (and that > all together on a WinME machine). BTW if you are using telnet you should probably use Net::Telnet, but that is not what is causing you problems Why not use select() ( the 3-argument version ) or non-blocking sockets? I used the 2nd solution a lot of time ago ( in a pure perl program ) and it worked fine. Regards Mattia |
From: Mo <mo...@mo...> - 2002-03-04 04:33:03
|
hi all, first of all, thanks for the new release mattia. i got a question about wx::process. i'm programming a telnet client for = a telnet game right now, so i constantly get some the output of the = server which i append to the main textctrl. now, after the server i am = connected to is done sending stuff and waiting for input, the whole = program doesn't react anymore which is logic since this is the main = process. so i used Wx::Yield first which works while the server is = sending stuff, but when it stops then the whole script freezes again. = then i tried the new Wx::Process, but couldn't really figure out (out of = the examples) how to use it with a subroutine. Wx::Process(&Sub, -1); gives no error message and i still get all the output, but then again it = freezes when the server waits for input. i'm using a the latest = wx-version, lastest activestate perl and to connect IO::Socket (and that = all together on a WinME machine).=20 thanks for all help, mo |
From: Mattia B. <mb...@ds...> - 2002-03-02 17:21:36
|
A new version of wxPerl, the Perl bindings to wxWindows is out! You can download the source from http://prdownload.sourceforge.net/wxperl/Wx-0.09.tar.gz Binary packages for ActivePerl/Win32 6xx builds, Redhat Linux 7.1 and Debian GNU/Linux "woody" are available along with documentation in HTML and MS HTML Help format from http://sourceforge.net/project/showfiles.php?group_id=15655 and http://wxperl.sourceforge.net/ Changes from the last version: - wxTaskBarIcon ( MS Windows only ) - wxGrid, wxGridCellAttr - wxGridCellRenderer, wxGridCellEditor - wxProcess and wxExecute - wxConfig Regards Mattia |
From: Mattia B. <mb...@ds...> - 2002-02-27 21:21:48
|
> hi all, > > is it possible to set a single item in a listctrl bold? > couldn't figure out how (or if) this works... I don't see a way, but you should ask wx-...@li... to be sure. Regards Mattia |
From: David R. <DR...@kn...> - 2002-02-27 20:12:52
|
i have a splitter contained within a splitter, much like the wxPerl demo = where the window is split vertically and the right pane split = horizontally. i am trying to build mine from an external XML = representation: <splitter type=3D"vert" size=3D"150" style=3D"0"> <pane name=3D"LeftPane"> <page name=3D"LeftPage" /> </pane> <pane name=3D"RightPane"> <splitter type=3D"horz" size=3D"150" style=3D"0"> <pane name=3D"TopPane"> <page name=3D"TopPage" /> </pane> <pane name=3D"BottomPane"> <page name=3D"BottomPage" /> </pane> </splitter> </pane> </splitter> The problem is to do with calling either SplitHorizontally() or = SplitVertically(). Because the data structure is nested, i split the = right pane horizontally before i split the main window vertically. It = appears that splitting vertically is causing the horizontal split size = to be lost. The same can be demonstrated in the wxPerl demo but changing = the order of the split calls (lines 226/227). Obviously, in the demo, = you can choose the order, but in a nested data structure as above, the = approach is one of completely rendering the child splitter before going = back to the parent. Any ideas appreciated. /dave |
From: Marco T. <wx...@so...> - 2002-02-27 13:25:48
|
hi all, is it possible to set a single item in a listctrl bold? couldn't figure out how (or if) this works... thanks Marco |
From: Mattia B. <mb...@ds...> - 2002-02-27 08:31:30
|
On Tue, 26 Feb 2002, David Roe wrote: >> yes, there is a bug in ( the wxPerl wrapper of ) both >> functions :-( ( propagated by cut'n'paste... ); the >> fixed version will be in the next wxPerl release; there >> is noworkaroud I know ( unless you want to recompile wxPerl ). > >i am happy to recompile the wxPerl source. i have the standard wx2 >installation and MS VC++ 6.0. are there any other requirements? No, but since the release will be probably in 3/5 days, there is little point in compiling it now. If you still want to do that, you should download the current CVS snapshot from the wxPerl site, which is what will be released, and contains the fix you want. HTH Mattia |
From: Alejandro F. <af...@st...> - 2002-02-25 15:43:40
|
Thanks, it worked fine! Sometimes the process pieces between appends/yields are a bit long but it= is responsive enough. I finally used Wx:SafeYield to disable the rest of the controls (they are mainly settings), hope this has no side-effect. The Yield call seems to have no noticeable effect on process speed too. Regards, Alejandro. Mattia Barbon wrote: > > Hi all.. > > First, thanks for the great wxPerl tool! I=B4m a newbie both to Perl = and > > wxWindows so i am having some hard times to get things working but > > slowly my script gets looking user friendly. > > > > I'm writing a GUI wrapper on Windows 2000 with Activestate to a > > 'untouchable' perl script, and for that i am using the open function = to > > get the output of the other script into a log window in the GUI. That > > part look like this: > > > > open STATUS, "theotherscript.bat -s$settings{SERVER} -check 2>&1 |" > > or die "can't fork: $!"; > > while (<STATUS>) { > > $this->{TEXTWINDOW}->AppendText($_); > > } > > close STATUS or $this->{TEXTWINDOW}->AppendText("-- ABNORMAL TASK > > PROCESS ENDING. See log window for details. \n"); > > > > Now, if i stay at the window with the TextCtrl it works fine, i see t= he > > output popping up while processing. But this can take a few minutes s= o > > it will happen a lot that the user goes to another program, lets say = to > > check his mail. If he clicks the wxPerl tab again to see how it is go= ing > > nothing happens, the GUI will only come back when the child process > > ends. Why?, can i change this behaviour? > The problem is that you are stuck in an event handler, so the event > loop isn't processing new events. The 'real' solution for this > is using Wx::Process, that will be in the next release ( to be > released Really Soon ); as a workaround you could > put a Wx::Yield call right after the ->AppendText call > this way the GUI will be responsve only during the > Wx::Yield call, though > > Regards > Mattia |
From: Mattia B. <mb...@ds...> - 2002-02-24 13:31:36
|
> Hi. I downloaded and compiled wxMac 2.3.2, then compiled and ran both the minimal > app and the grid app without problems. I then built wxPerl and ran > a make test, but it failed all tests. Regardless, I installed it > and ran a few samples, and none of them worked. The errors are samples work even if wxPerl is uninstalled ( use "perl run samplename" ) > provided below. > [localhost:~/Documents/Wx/Wx-0.08] matt% make test > make[1]: Nothing to be done for `all'. > make[1]: Nothing to be done for `all'. > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/1_load............ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. > Compilation failed in require at t/1_load.t line 6. As a workaround you should change in cpp/helpers.h, around line 300 class WXPLDLL wxPliClassInfo:public wxClassInfo { public: wxPliClassInfo( wxChar *cName, wxChar *baseName1, wxChar *baseName2, int sz, wxPliGetCallbackObjectFn fn ) :wxClassInfo( cName, baseName1, baseName2, sz, 0) { m_func = fn; //FIXME// m_baseInfo1 = wxClassInfo::FindClass( baseName1 ); // >>>>>>>> HERE, comment out with // the following two lines <<<<<<< //if( m_baseInfo1 == 0 ) //croak( "ClassInfo initialization failed '%s'", baseName1 ); } public: wxPliGetCallbackObjectFn m_func; }; BTW this is a workaround and it is being fixed in wxMac; please note that if you want to run wxPerl on Mac you should debug problems yourself ( you can always ask here, but since I don't have a Mac, nor I ever used one, I can't be of much help ) HTH Mattia |
From: Matt F. <ma...@iw...> - 2002-02-23 19:52:27
|
Hi. I downloaded and compiled wxMac 2.3.2, then compiled and ran both the minimal app and the grid app without problems. I then built wxPerl and ran a make test, but it failed all tests. Regardless, I installed it and ran a few samples, and none of them worked. The errors are provided below. Thanks, Matt Errors when running make test for wxPerl: [localhost:~/Documents/Wx/Wx-0.08] matt% make test make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/1_load............ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at t/1_load.t line 6. BEGIN failed--compilation aborted at t/1_load.t line 6. t/1_load............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/2_inheritance.....ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at t/2_inheritance.t line 4. BEGIN failed--compilation aborted at t/2_inheritance.t line 4. t/2_inheritance.....dubious Test returned status 255 (wstat 65280, 0xff00) t/3_event...........ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at t/3_event.t line 9. BEGIN failed--compilation aborted at t/3_event.t line 9. t/3_event...........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/4_userdata........ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at t/4_userdata.t line 9. BEGIN failed--compilation aborted at t/4_userdata.t line 9. t/4_userdata........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed ------------------------------------------------------------------------------- t/1_load.t 255 65280 1 1 100.00% 1 t/2_inheritance 255 65280 ?? ?? % ?? t/3_event.t 255 65280 1 1 100.00% 1 t/4_userdata.t 255 65280 5 5 100.00% 1-5 Failed 4/4 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 2 When running any perl sample, the following error is produced: [localhost:~/Documents/Wx/Wx-0.08] matt% perl samples/minimal/minimal.pl ClassInfo initialization failed 'wxTimer' at /System/Library/Perl/darwin/DynaLoader.pm line 200. Compilation failed in require at samples/minimal/minimal.pl line 14. BEGIN failed--compilation aborted at samples/minimal/minimal.pl line 14. Note that it takes about 10 seconds for the error to be printed. _____________________________________________________________ |
From: Marcus <li...@wo...> - 2002-02-23 19:49:53
|
On 23.02.02 at 07:17 James Lavery wrote: >Has anyone else succeeded in using Perl2Exe with wxPerl? You do know it has to be Wx case-sensitive? Yes, I have. You do need to package the wx_version.dll with it. I can't figure out your problem right now, but it did work with wxPerl wx22_8.dll and ActivePerl build 623 (5.6.1), and wx MSW 2.2.x. Perl2Exe is picky about module paths, so that could be a possibility. Have you added Perl2Exe to your path variable, instead of running it with a full path. Just a thought. Marcus |
From: Mattia B. <mb...@ds...> - 2002-02-23 13:41:47
|
> Hi all.. > First, thanks for the great wxPerl tool! I=B4m a newbie both to Perl and > wxWindows so i am having some hard times to get things working but > slowly my script gets looking user friendly. > > I'm writing a GUI wrapper on Windows 2000 with Activestate to a > 'untouchable' perl script, and for that i am using the open function to > get the output of the other script into a log window in the GUI. That > part look like this: > > open STATUS, "theotherscript.bat -s$settings{SERVER} -check 2>&1 |" > or die "can't fork: $!"; > while (<STATUS>) { > $this->{TEXTWINDOW}->AppendText($_); > } > close STATUS or $this->{TEXTWINDOW}->AppendText("-- ABNORMAL TASK > PROCESS ENDING. See log window for details. \n"); > > Now, if i stay at the window with the TextCtrl it works fine, i see the > output popping up while processing. But this can take a few minutes so > it will happen a lot that the user goes to another program, lets say to > check his mail. If he clicks the wxPerl tab again to see how it is going > nothing happens, the GUI will only come back when the child process > ends. Why?, can i change this behaviour? The problem is that you are stuck in an event handler, so the event loop isn't processing new events. The 'real' solution for this is using Wx::Process, that will be in the next release ( to be released Really Soon ); as a workaround you could put a Wx::Yield call right after the ->AppendText call this way the GUI will be responsve only during the Wx::Yield call, though Regards Mattia |
From: James L. <jl...@bi...> - 2002-02-23 07:14:59
|
Hi again, I forgot to say that I'm using the wxPerl binary from SourceForge, version 0.08, and wxWindows 2.3.1, and IndigoPerl under Win98 - these work fine with a plain perl script. I've also tried copying the wx23_1.dll library to the current directory, but this does not solve the problem. James ----- Original Message ----- From: "James Lavery" <jl...@bi...> To: <mb...@ds...>; <wxp...@li...> Sent: 23 February 2002 07:17 Subject: Using wxPerl with Perl2Exe > Hi everyone, > > I want to use Perl2Exe to package up my application, but am having problems. > > Perl2Exe runs fine, and produces a .exe file, but when I run it, I get the > following errors: > > Compilation failed in require at C:\MY DOCUMENTS\PROG\TFC\PERL_SRC\TFFC.EXE > line 10. > BEGIN failed--compilation aborted at C:\MY > DOCUMENTS\PROG\TFC\PERL_SRC\TFFC.EXE line 10. > > Line 10 is my 'use Wx' line. > > Has anyone else succeeded in using Perl2Exe with wxPerl? > > Thanks, > > James > |
From: James L. <jl...@bi...> - 2002-02-23 07:12:30
|
Hi everyone, I want to use Perl2Exe to package up my application, but am having problems. Perl2Exe runs fine, and produces a .exe file, but when I run it, I get the following errors: Compilation failed in require at C:\MY DOCUMENTS\PROG\TFC\PERL_SRC\TFFC.EXE line 10. BEGIN failed--compilation aborted at C:\MY DOCUMENTS\PROG\TFC\PERL_SRC\TFFC.EXE line 10. Line 10 is my 'use Wx' line. Has anyone else succeeded in using Perl2Exe with wxPerl? Thanks, James |
From: Alejandro F. <af...@st...> - 2002-02-22 18:11:47
|
Hi all.. First, thanks for the great wxPerl tool! I=B4m a newbie both to Perl and wxWindows so i am having some hard times to get things working but slowly my script gets looking user friendly. I'm writing a GUI wrapper on Windows 2000 with Activestate to a 'untouchable' perl script, and for that i am using the open function to get the output of the other script into a log window in the GUI. That part look like this: open STATUS, "theotherscript.bat -s$settings{SERVER} -check 2>&1 |" or die "can't fork: $!"; while (<STATUS>) { $this->{TEXTWINDOW}->AppendText($_); } close STATUS or $this->{TEXTWINDOW}->AppendText("-- ABNORMAL TASK PROCESS ENDING. See log window for details. \n"); Now, if i stay at the window with the TextCtrl it works fine, i see the output popping up while processing. But this can take a few minutes so it will happen a lot that the user goes to another program, lets say to check his mail. If he clicks the wxPerl tab again to see how it is going nothing happens, the GUI will only come back when the child process ends. Why?, can i change this behaviour? Thanks again. Regards, Alejandro. P.D. A fast link to download the samples at the home page would be a great time saver! (i noticed that they exist only after reading some really old messages on this list and then dowloaded them from ... i dont remember). |
From: Marco T. <wx...@so...> - 2002-02-20 09:46:51
|
----- Original Message ----- From: "Mattia Barbon" <mb...@ds...> To: "Marco Trudel" <wx...@so...> Cc: <wxp...@li...> Sent: Thursday, February 07, 2002 10:52 PM Subject: Re: [wxperl-users] <tab> moving between controls > > hi all... > > > > question (wow, what surprise :-)): > > > > in dialogs, the "tab" key moves to the next control... > > is it possible to use this feature with some TextCtrl's in a sizer too? > Not tested, but putting the textctrls in a wxPanel should work. > ( of course you can put the panel in a sizer, or a sizer > in the panel ) > > Regards > Mattia well, think my question wasn't precise enough... in fact i wanted the tab to work in a frame... just saw it in the docs: wxTAB_TRAVERSAL (Use this to enable tab traversal for non-dialog windows.) think that's the most easy way to do it... greetings Marco |
From: Mattia B. <mb...@ds...> - 2002-02-19 19:44:08
|
Please set word wrap to something like 75 columns, thanks! > 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 = undef ) returning a > four element array ( $width, $height, $descent, $externalLeading )" > yet I am getting an undef return value. > > <example> > > my $dc = new Wx::WindowDC($w); > $dc->SetFont($font); > my ($width,$height,$d,$e) = $dc->GetTextExtent($text); > print "text=$text width=$width, height=$height\n"; > > </example> > > 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? yes, there is a bug in ( the wxPerl wrapper of ) both functions :-( ( propagated by cut'n'paste... ); the fixed version will be in the next wxPerl release; there is no workaroud I know ( unless you want to recompile wxPerl ). Sorry Mattia |
From: David R. <DR...@kn...> - 2002-02-19 05:00:31
|
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. <example> my $dc =3D new Wx::WindowDC($w); $dc->SetFont($font); my ($width,$height,$d,$e) =3D $dc->GetTextExtent($text); print "text=3D$text width=3D$width, height=3D$height\n"; </example> 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, /dave |