Jump to content

Edit Box Max Lines Problem


gamingmouse
 Share

Recommended Posts

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

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

clear 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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...