Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Win32::GUI::Window clipboard/buffer limit?

by lmennuti (Initiate)
on Feb 01, 2008 at 14:44 UTC ( [id://665580]=perlquestion: print w/replies, xml ) Need Help??

lmennuti has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm hoping someone can give me a nice easy fix for this one (HOPING!)...

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
  • Comment on Win32::GUI::Window clipboard/buffer limit?

Replies are listed 'Best First'.
Re: Win32::GUI::Window clipboard/buffer limit?
by Anonymous Monk on Feb 01, 2008 at 20:15 UTC
    You are probably dealing with http://dada.perl.it/gui_docs/Textfield.html
    MaxLength([CHARS]) Limits the number of characters that the Textfield accept to CHARS +, or returns the current limit if no argument is given. To remove the + limit (eg. set it to the maximum allowed which is 32k for a single-l +ine Textfield and 64k for a multiline one) set CHARS to 0.
Re: Win32::GUI::Window clipboard/buffer limit?
by Popcorn Dave (Abbot) on Feb 01, 2008 at 17:41 UTC
    There may be a built in limit in Windows that you're going to have to either bypass or emulate to overcome.

    That said, LifeHacker just had an article on a utility to keep all the things you've copied to the clipboard that uses SQL to achieve that, but after looking around there a bit, I think this SourceForge project may be of more use to you since you can peruse the source.


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://665580]
Approved by Corion
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found