boaty Posted September 30, 2009 Share Posted September 30, 2009 So I'm still working on my IM program, and actually it's all done. I just need to add some cosmetic niceties. Anyways, I constantly update the text of an Edit control like this: GUICtrlSetData($EditRecv, GUICtrlRead($EditRecv) & @CRLF & $SendText) The problem is, whenever I do so, the edit control defaults to all the way to the top. I'd like it to default at the bottom... Anyway around this? Link to comment Share on other sites More sharing options...
JRowe Posted September 30, 2009 Share Posted September 30, 2009 Function _GUICtrlEdit_Scroll_GUICtrlEdit_Scroll($hWnd, $iDirection)$hWnd = your edit control.$iDirection = $SB_LINEDOWN - Scrolls down one line$SB_LINEUP - Scrolls up one line$SB_PAGEDOWN - Scrolls down one page$SB_PAGEUP - Scrolls up one page$SB_SCROLLCARET - Scrolls the caret into viewInclude Function _GUICtrlEdit_ScrollScrollBarConstants.au3Best bet for handling situations like this in the future, check out the help file and look for all functions dealing with the control you're using. Most likely, someone has thought of exactly what you need and has provided a nice, clean way for you to get at it. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
boaty Posted October 1, 2009 Author Share Posted October 1, 2009 Gah, thank you so much. I always check the AutoIt3, but never just the AutoIt help. I really don't know why it's seperated...finding information is just that much harder...but anyways..thanks so much. Link to comment Share on other sites More sharing options...
CodyBarrett Posted October 1, 2009 Share Posted October 1, 2009 or... you could also use _GuiCtrlEdit_AppendText () [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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