Jump to content
Sign in to follow this  
furrycow

Why does _GUICtrlEdit_AppendText() not let me add more data?

Recommended Posts

furrycow

Hey,

when something changes in my program it is all logged..eg..pressing a button

When someone presses a button, it will use:

_GUICtrlEdit_AppendText($EDITBox, "x button was pressed")

to send the "status" to the editbox, it also at the same time will

FileWrite("Log.txt","x button was pressed")

So that when my program starts up again, it will read anything in Log.txt and put it in the editbox.

Now, i have noticed that once the editbox has reached 1000 lines the

_GUICtrlEdit_AppendText()

Does not add any more data to the editbox, however it still uses the filewrite()

So, although no more data is being shown in the editbox, the program is still running and storing the "status'".

When i start the program up again, it will actually add all the data to the editbox (more than 1000 lines...includes the data that wasnt showing before)...(i am using fileread() here)

So i was wondering, why does it stop adding data at 1000 lines when using

_GUICtrlEdit_AppendText().

I have not set any limits anywhere that would make it think 1000 lines is the limit.

Many Thanks


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites
Bowmore

By default the standard windows edit control has a limit of approximately 64K bytes. I think there are ways of making it work with more data, but the simpler solution is to use a RichText control instead if you need to display a large amount of text.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.