furrycow Posted November 2, 2008 Share Posted November 2, 2008 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 Link to comment Share on other sites More sharing options...
Bowmore Posted November 2, 2008 Share Posted November 2, 2008 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted November 2, 2008 Share Posted November 2, 2008 _GUICtrlEdit_SetLimitText SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now