Jump to content

$ES_AUTOVSCROLL not working?


Jabberwock
 Share

Recommended Posts

if you wait for this to fill the edit... the autoscroll works

#include <GUIConstants.au3>


GUICreate("my GUI")

$edit = GUICtrlCreateEdit("",10,40,330,150,BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_READONLY))


GUISetState()



While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        
    EndSelect
    GUICtrlSetData($edit, "this is a test---", 1)
    sleep(500)
    
Wend

if i understand your "?"

8)

NEWHeader1.png

Link to comment
Share on other sites

hmm some how i've gotta have it execute this everytime i get another line of info?

_GUICtrlEditScroll ($edit, $SB_LINEDOWN)

you could check the line count, if it changes then do a scroll, check that function in the help, there's also pagedown and others.

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

there's no need, i know how to insert the code, it dosn't work

I even put it here,

If $msg = $butt Then
      $ret = TCPSend($socket, GUICtrlRead($input))
      _GUICtrlEditScroll ($edit, $SB_LINEDOWN)
    If @ERROR Then
    MsgBox(4096, "Error", "Could not send", 0)
    EndIf
Edited by Jabberwock
Link to comment
Share on other sites

It does work, but with-out the code to look at no-one can really help you.

_GUICtrlEditLineScroll ($edit, 0, _GUICtrlEditGetLineCount ($edit))

Edited by gafrost

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...