gamingmouse Posted December 29, 2006 Share Posted December 29, 2006 I have an edit box which displays output from a command line program. The problem is that after a while (a few hundred or a few thousand lines of output -- I'm not sure exactly) the edit box fills up: after the edit box reaches its limit, new output is not displayed. That is, instead of scrolling up and forcing the first lines of output off the screen to make way for the new lines of output (the way a cmd line window works), the edit box refuses to accept new output. Is there any way I can change this behavior? Other solutions? Thanks gm Link to comment Share on other sites More sharing options...
GaryFrost Posted December 29, 2006 Share Posted December 29, 2006 I have an edit box which displays output from a command line program. The problem is that after a while (a few hundred or a few thousand lines of output -- I'm not sure exactly) the edit box fills up: after the edit box reaches its limit, new output is not displayed. That is, instead of scrolling up and forcing the first lines of output off the screen to make way for the new lines of output (the way a cmd line window works), the edit box refuses to accept new output. Is there any way I can change this behavior? Other solutions?Thanksgmclear the edit box once in a while.check #15 of the FAQs in the help 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...
Edgar Posted December 29, 2006 Share Posted December 29, 2006 I modified the code from the help file. #include <GUIConstants.au3> GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered $myedit=GUICtrlCreateEdit ("", 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL) GUISetState () ; will be append dont' forget 3rd parameter For $i = 1 To 30005 GUICtrlSetData ($myedit, "line " &$i &@CRLF ,1) Next ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend The max chars of the edit box is 30000 on my PC. Is it the limit of edit box ?? Thanks. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 29, 2006 Share Posted December 29, 2006 I modified the code from the help file. #include <GUIConstants.au3> GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered $myedit=GUICtrlCreateEdit ("", 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL) GUISetState () ; will be append dont' forget 3rd parameter For $i = 1 To 30005 GUICtrlSetData ($myedit, "line " &$i &@CRLF ,1) Next ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend The max chars of the edit box is 30000 on my PC. Is it the limit of edit box ?? Thanks. Read post #2 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...
pecloe Posted December 30, 2006 Share Posted December 30, 2006 GUICtrlSetLimit($EDIT_WINDOW, 0xF423F); = 999,999 Link to comment Share on other sites More sharing options...
Edgar Posted January 2, 2007 Share Posted January 2, 2007 GUICtrlSetLimit($EDIT_WINDOW, 0xF423F); = 999,999I tried it , it works perfect.Thanks. 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