Jabberwock Posted December 15, 2005 Posted December 15, 2005 $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
Valuater Posted December 15, 2005 Posted December 15, 2005 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)
GaryFrost Posted December 15, 2005 Posted December 15, 2005 Scrolls text up one page when the user presses the ENTER key on the last line. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Valuater Posted December 15, 2005 Posted December 15, 2005 @gafrost i see.. he wants it to show the last entry.... like our chat client ( you scripted that part) 8)
GaryFrost Posted December 15, 2005 Posted December 15, 2005 _GUICtrlEditScroll SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Jabberwock Posted December 15, 2005 Author Posted December 15, 2005 hmm some how i've gotta have it execute this everytime i get another line of info? _GUICtrlEditScroll ($edit, $SB_LINEDOWN)
GaryFrost Posted December 15, 2005 Posted December 15, 2005 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.
Jabberwock Posted December 15, 2005 Author Posted December 15, 2005 i'm just a little bit confused anyway, isn't this suppose to scroll down anyway? i mean who wants to auto scroll up?
Valuater Posted December 15, 2005 Posted December 15, 2005 maybe..... While 1 $msg = GUIGetMessage() if $msg = $edit then _GUICtrlEditScroll ($edit, $SB_LINEDOWN) endif Wend Just an idea 8)
GaryFrost Posted December 16, 2005 Posted December 16, 2005 Nope didn't work =/ post your code SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Jabberwock Posted December 16, 2005 Author Posted December 16, 2005 (edited) there's no need, i know how to insert the code, it dosn't workI 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 December 16, 2005 by Jabberwock
GaryFrost Posted December 16, 2005 Posted December 16, 2005 (edited) It does work, but with-out the code to look at no-one can really help you. _GUICtrlEditLineScroll ($edit, 0, _GUICtrlEditGetLineCount ($edit)) Edited December 16, 2005 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.
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