Andrew Sparkes Posted March 12, 2006 Share Posted March 12, 2006 I'm trying to output the progress of a program to a homemade console (barebones gui with big edit box) and so far, I'm not getting the output I want. I tried searching the forums and help file, but all I found were unneeded extended styles and lots about command prompt and the like. I'll explain my problem a little better: I have a edit box, lets say 500w x 200h. I want to update the contents of the box with events read from another process and the method I'm using to add data to it isGUICtrlSetData ($editbox, GUICtrlRead($editbox) & @CRLF & 'stuff to add here' ) It will output in the right order, but is there any way for the box to stay aligned to the bottom line and autoscroll to keep up with the most recent text? (at the bottom) If you don't know what I mean, look at the command prompt and how it stays focused on the bottom line and scrolls up, like an inverted text box... All help is appreciated. Thanks, Sparkes. ---Sparkes. Link to comment Share on other sites More sharing options...
greenmachine Posted March 12, 2006 Share Posted March 12, 2006 Try this method: _GUICtrlEditLineScroll ($Edit, 0, _GUICtrlEditGetLineCount ($Edit)) This requires #include <GuiEdit.au3> and most likely beta. Link to comment Share on other sites More sharing options...
Andrew Sparkes Posted March 13, 2006 Author Share Posted March 13, 2006 greenmachine, I could totally kiss you right now. I was banging my head against the keyboard all day, and somehow didn't think of the UDFs... I thank you. I tried it and it worked like a charm. It scrolls like a trooper. There are some interesting functions in GuiEdit.au3 that I never knew about... Translation: Lots of tinkering will ensue.... Thanks again for the graceful solution. ---Sparkes. 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