Sign in to follow this  
Followers 0
Jabberwock

$ES_AUTOVSCROLL not working?

14 posts in this topic

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

Someone tell me what i'm doing wrong? it dosn't want to auto scroll


Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

dosn't seem to change anything

Posted Image


Share this post


Link to post
Share on other sites

@gafrost

i see.. he wants it to show the last entry.... like our chat client

( you scripted that part)

8)


NEWHeader1.png

Share this post


Link to post
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)


Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

i'm just a little bit confused anyway, isn't this suppose to scroll down anyway? i mean who wants to auto scroll up?


Share this post


Link to post
Share on other sites

maybe.....

While 1

$msg = GUIGetMessage()

if $msg = $edit then

_GUICtrlEditScroll ($edit, $SB_LINEDOWN)

endif

Wend

Just an idea

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Nope didn't work =/


Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

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.

 

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  
Followers 0