From: <Lin...@ba...> - 2008-02-01 15:07:44
|
Hello everyone, =20 Apologies if I've missed something obvious with this... =20 =20To start, this is what I'm running: - WinXP SP2 - Perl 5.8.8 Build 820 - Win32::GUI 1.0.5 - Windows Notepad clone: http://www.koders.com/perl/fidB18829AABB0A5DECEF04D53957FFEB1C2BFD38DD.a spx?s=3Dcalculate=20 Problem: I've taken the notepad clone from the link and have augmented it for use in parsing large logs (copy&paste logs into the window, then running customized scripts from the menu), unfortunately when I paste the log info into the window (generated by Win32::GUI::Window), it's getting truncated after about 220 lines (29781 bytes) and I can no longer type anything else into the window. I was using Win32::GUI 1.0.3 and upgraded to 1.0.5 but still have the problem. Any help much appreciated! - Lincoln ------------------------------------------------------------------------ For important statutory and regulatory disclosures and more information a= bout Barclays Capital, please visit our web site at http://www.barcap.com= . Internet communications are not secure and therefore the Barclays Group d= oes not accept legal responsibility for the contents of this message. Al= though the Barclays Group operates anti-virus programmes, it does not acc= ept responsibility for any damage whatsoever that is caused by viruses be= ing passed. Any views or opinions presented are solely those of the auth= or and do not necessarily represent those of the Barclays Group. Replies= =20to this email may be monitored by the Barclays Group for operational o= r business reasons. Barclays Capital is the investment banking division of Barclays Bank PLC,= =20a company registered in England (number 1026167) with its registered o= ffice at 1 Churchill Place, London, E14 5HP. This email may relate to or = be sent from other members of the Barclays Group. ------------------------------------------------------------------------ |
From: Robert M. <rob...@us...> - 2008-02-01 15:38:57
|
>From the sound of it you'll be interested in these 2 threads - I'm a bit confused by your 29781 byte limit, as I though the default limit was 64K. Anyway, if you replace (what I assume to be) your Win32::GUI::Textfield with a Win32::GUI::RichEdit the maximum size is about 2GB. You need to set it if you want more than 64(?)k. http://www.mail-archive.com/per...@li.../msg05124.html http://www.mail-archive.com/per...@li.../msg05091.html Regards, Rob. On 01/02/2008, Lin...@ba... <Lin...@ba...> wrote: > > > Hello everyone, > > Apologies if I've missed something obvious with this... > > To start, this is what I'm running: > - WinXP SP2 > - Perl 5.8.8 Build 820 > - Win32::GUI 1.0.5 > - Windows Notepad clone: > http://www.koders.com/perl/fidB18829AABB0A5DECEF04D53957FFEB1C2BFD38DD.aspx?s=calculate > > Problem: > I've taken the notepad clone from the link and have augmented it for use in > parsing large logs (copy&paste logs into the window, then running customized > scripts from the menu), unfortunately when I paste the log info into the > window (generated by Win32::GUI::Window), it's getting truncated after about > 220 lines (29781 bytes) and I can no longer type anything else into the > window. > > I was using Win32::GUI 1.0.3 and upgraded to 1.0.5 but still have the > problem. > > Any help much appreciated! > - Lincoln > > ------------------------------------------------------------------------ > For important statutory and regulatory disclosures and more information > about Barclays Capital, please visit our web site at http://www.barcap.com. > > Internet communications are not secure and therefore the Barclays Group does > not accept legal responsibility for the contents of this message. Although > the Barclays Group operates anti-virus programmes, it does not accept > responsibility for any damage whatsoever that is caused by viruses being > passed. Any views or opinions presented are solely those of the author and > do not necessarily represent those of the Barclays Group. Replies to this > email may be monitored by the Barclays Group for operational or business > reasons. > > Barclays Capital is the investment banking division of Barclays Bank PLC, a > company registered in England (number 1026167) with its registered office at > 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from > other members of the Barclays Group. > ------------------------------------------------------------------------ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Please update your address book with my new email address: ro...@th... |
From: Jeremy W. <jez...@ho...> - 2008-02-01 15:46:18
|
Hi, >From memory there is a limit (its a windows thing rather than Win32::GUI). = Now that you're using 1.5 have a look at use the scintilla control instead = - it has no limit. There are several examples - have a look at Editor.pl - = should be what you are looking for. You can turn off the syntax highlightin= g so it will be fine for log file etc. Cheers, jez. ________________________________ Date: Fri, 1 Feb 2008 10:07:46 -0500 From: Lin...@ba... To: per...@li... Subject: [perl-win32-gui-users] Win32::GUI:Window clipboard/buffer limit? Hello everyone, Apologies if I've missed something obvious with this... To start, this is what I'm running: - WinXP SP2 - Perl 5.8.8 Build 820 - Win32::GUI 1.0.5 - Windows Notepad clone: http://www.koders.com/perl/fidB18829AABB0A5DECEF04D53957FFEB1C2BFD38DD.aspx= ?s=3Dcalculate Problem: I've taken the notepad clone from the link and have augmented it for use in parsing large logs (copy&paste logs into the window= , then running customized scripts from the menu), unfortunately when I paste = the log info into the window (generated by Win32::GUI::Window), it's getting truncated after about 220 lines (29781 bytes) and I can no longer type anyt= hing else into the window. I was using Win32::GUI 1.0.3 and upgraded to 1.0.5 but still have the problem. Any help much appreciated! - Lincoln ------------------------------------------------------------------------ For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of= this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operationa= l or business reasons. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with= its registered office at 1 Churchill Place, London, E14 5HP. This email may rel= ate to or be sent from other members of the Barclays Group. ------------------------------------------------------------------------ _________________________________________________________________ Share what Santa brought you https://www.mycooluncool.com= |
From: <Lin...@ba...> - 2008-02-01 16:51:42
|
Thanks for the reply Rob, Apologies for having to ask (as I'm still new to and learning about Methods and Events and the such), but what's the proper syntax to switchout to using RichEdit instead? I tried changing the AddTextfield to AddRichEdit instead, but the Window is still truncating my data at only 32k. Here's the bits for calling the Window and Text fields that I have: # Create Main Window my $Window =3D new Win32::GUI::Window ( -name =3D> "Window", -title =3D> "HPC Service Delivery Admin Console", -pos =3D> [100, 100], -size =3D> [1000, 800], -menu =3D> $Menu, -onResize =3D> \&Notepad_OnSize, -onInitMenu =3D> \&Notepad_OnInitMenu, -onTerminate =3D> \&Notepad_OnQuitFile, ) or die "new Window"; # Create Textfield for Edit Text $Window->AddRichEdit( -name =3D> "Edit", -pos =3D> [0, 0], -size =3D> [1000, 800], -multiline =3D> 1, -hscroll =3D> 1, -vscroll =3D> 1, -autohscroll =3D> 1, -autovscroll =3D> 1, -keepselection =3D> 1, -font =3D> $EditFont, ); Regards, - Lincoln -----Original Message----- From: ro...@th... [mailto:ro...@th...] On Behalf Of Robert May Sent: Friday, February 01, 2008 10:39 AM To: Mennuti, Lincoln: IT UK - QA (NYK) Cc: per...@li... Subject: Re: [perl-win32-gui-users] Win32::GUI:Window clipboard/buffer limit? >From the sound of it you'll be interested in these 2 threads - I'm a bit confused by your 29781 byte limit, as I though the default limit was 64K. Anyway, if you replace (what I assume to be) your Win32::GUI::Textfield with a Win32::GUI::RichEdit the maximum size is about 2GB. You need to set it if you want more than 64(?)k. http://www.mail-archive.com/per...@li.../m sg05124.html http://www.mail-archive.com/per...@li.../m sg05091.html Regards, Rob. On 01/02/2008, Lin...@ba... <Lin...@ba...> wrote: > > > Hello everyone, > > Apologies if I've missed something obvious with this... > > To start, this is what I'm running: > - WinXP SP2 > - Perl 5.8.8 Build 820 > - Win32::GUI 1.0.5 > - Windows Notepad clone: > http://www.koders.com/perl/fidB18829AABB0A5DECEF04D53957FFEB1C2BFD38DD > .aspx?s=3Dcalculate > > Problem: > I've taken the notepad clone from the link and have augmented it for=20 > use in parsing large logs (copy&paste logs into the window, then=20 > running customized scripts from the menu), unfortunately when I paste=20 > the log info into the window (generated by Win32::GUI::Window), it's=20 > getting truncated after about 220 lines (29781 bytes) and I can no=20 > longer type anything else into the window. > > I was using Win32::GUI 1.0.3 and upgraded to 1.0.5 but still have the=20 > problem. > > Any help much appreciated! > - Lincoln > > ---------------------------------------------------------------------- > -- For important statutory and regulatory disclosures and more=20 > information about Barclays Capital, please visit our web site at=20 > http://www.barcap.com. > > Internet communications are not secure and therefore the Barclays=20 > Group does not accept legal responsibility for the contents of this=20 > message. Although the Barclays Group operates anti-virus programmes,=20 > it does not accept responsibility for any damage whatsoever that is=20 > caused by viruses being passed. Any views or opinions presented are=20 > solely those of the author and do not necessarily represent those of=20 > the Barclays Group. Replies to this email may be monitored by the=20 > Barclays Group for operational or business reasons. > > Barclays Capital is the investment banking division of Barclays Bank=20 > PLC, a company registered in England (number 1026167) with its=20 > registered office at > 1 Churchill Place, London, E14 5HP. This email may relate to or be=20 > sent from other members of the Barclays Group. > ---------------------------------------------------------------------- > -- > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by: Microsoft Defy all challenges.=20 > Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Please update your address book with my new email address: ro...@th... |
From: Robert M. <ro...@th...> - 2008-02-01 17:07:41
|
On 01/02/2008, Lin...@ba... <Lin...@ba...> wrote: > Thanks for the reply Rob, > > Apologies for having to ask (as I'm still new to and learning about > Methods and Events and the such), but what's the proper syntax to > switchout to using RichEdit instead? I haven't run your code, but it looks at first glance OK. > I tried changing the AddTextfield to AddRichEdit instead, but the Window > is still truncating my data at only 32k. Have you done $Window->Edit->LimiteText($max_size); where $max_size can be between 0 and 2^32 - 1 as explicitly stated in one of the 2 threads I linked you to? Both Edit controls (Textfields) and RichEdit controls have a default limit of 32K. You need to call this method after creating one if you want a bigger limit. TextFields have a maximu of several MB (IIRC) and RichEdit about 2GB. Rob. > > Here's the bits for calling the Window and Text fields that I have: > > # Create Main Window > my $Window = new Win32::GUI::Window ( > -name => "Window", > -title => "HPC Service Delivery Admin Console", > -pos => [100, 100], > -size => [1000, 800], > -menu => $Menu, > -onResize => \&Notepad_OnSize, > -onInitMenu => \&Notepad_OnInitMenu, > -onTerminate => \&Notepad_OnQuitFile, > ) or die "new Window"; > > # Create Textfield for Edit Text > $Window->AddRichEdit( > -name => "Edit", > -pos => [0, 0], > -size => [1000, 800], > -multiline => 1, > -hscroll => 1, > -vscroll => 1, > -autohscroll => 1, > -autovscroll => 1, > -keepselection => 1, > -font => $EditFont, > ); > > > Regards, > - Lincoln > > > -----Original Message----- > From: ro...@th... [mailto:ro...@th...] On Behalf > Of Robert May > Sent: Friday, February 01, 2008 10:39 AM > To: Mennuti, Lincoln: IT UK - QA (NYK) > Cc: per...@li... > Subject: Re: [perl-win32-gui-users] Win32::GUI:Window clipboard/buffer > limit? > > >From the sound of it you'll be interested in these 2 threads - I'm a bit > confused by your 29781 byte limit, as I though the default limit was > 64K. Anyway, if you replace (what I assume to be) your > Win32::GUI::Textfield with a Win32::GUI::RichEdit the maximum size is > about 2GB. You need to set it if you want more than 64(?)k. > > http://www.mail-archive.com/per...@li.../m > sg05124.html > http://www.mail-archive.com/per...@li.../m > sg05091.html > > Regards, > Rob. > > On 01/02/2008, Lin...@ba... > <Lin...@ba...> wrote: > > > > > > Hello everyone, > > > > Apologies if I've missed something obvious with this... > > > > To start, this is what I'm running: > > - WinXP SP2 > > - Perl 5.8.8 Build 820 > > - Win32::GUI 1.0.5 > > - Windows Notepad clone: > > http://www.koders.com/perl/fidB18829AABB0A5DECEF04D53957FFEB1C2BFD38DD > > .aspx?s=calculate > > > > Problem: > > I've taken the notepad clone from the link and have augmented it for > > use in parsing large logs (copy&paste logs into the window, then > > running customized scripts from the menu), unfortunately when I paste > > the log info into the window (generated by Win32::GUI::Window), it's > > getting truncated after about 220 lines (29781 bytes) and I can no > > longer type anything else into the window. > > > > I was using Win32::GUI 1.0.3 and upgraded to 1.0.5 but still have the > > problem. > > > > Any help much appreciated! > > - Lincoln > > > > ---------------------------------------------------------------------- > > -- For important statutory and regulatory disclosures and more > > information about Barclays Capital, please visit our web site at > > http://www.barcap.com. > > > > Internet communications are not secure and therefore the Barclays > > Group does not accept legal responsibility for the contents of this > > message. Although the Barclays Group operates anti-virus programmes, > > it does not accept responsibility for any damage whatsoever that is > > caused by viruses being passed. Any views or opinions presented are > > solely those of the author and do not necessarily represent those of > > the Barclays Group. Replies to this email may be monitored by the > > Barclays Group for operational or business reasons. > > > > Barclays Capital is the investment banking division of Barclays Bank > > PLC, a company registered in England (number 1026167) with its > > registered office at > > 1 Churchill Place, London, E14 5HP. This email may relate to or be > > sent from other members of the Barclays Group. > > ---------------------------------------------------------------------- > > -- > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all challenges. > > Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Perl-Win32-GUI-Users mailing list > > Per...@li... > > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > > http://perl-win32-gui.sourceforge.net/ > > > > > -- > Please update your address book with my new email address: > ro...@th... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Please update your address book with my new email address: ro...@th... |