Jump to content

Scrolling to the bottom of.. Anything made by Autoit


avery
 Share

Recommended Posts

I am not sure if this a GUI specific issue or not and therefor not sure which forum to post in. If I posted this in the wrong place I apologize and hope an admin can remove my mistake.

Does anyone know how to make an Edit control scroll to the bottom on new text. I tried all the combination I could think of documented here: http://www.autoitscript.com/autoit3/docs/a...x/GUIStyles.htm.

Currently the only way I can keep the latest status message at top and viewable to the user is to reverse the lines I write so the new ones stay at the top. This looks pretty silly though. Can someone please help me.

$status = GUICtrlCreateEdit("", 8, 104, 609, 169, BitOR($ES_AUTOVSCROLL, $ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL))

...

Func _s($line)
    $_ln += 1
    $set_status = GUICtrlRead($status)
    $line = $line & @CRLF & $set_status
    ;$line = $set_status & $line
    GUICtrlSetData($status, "[" & $_ln & "] " & $time & $line & @CRLF)
EndFunc   ;==>_s

Example of my reverse output. I'd like to make the window scroll down on new data and the numbers to be 1, 2, 3, etc not 6, 5, 4, 3 etc.

[6] 2009/02/04@22:07:(29) secedit command documented in secedit_cmd.bat

[5] 2009/02/04@22:07:(29) _LOGFILE: C:\Program Files\NISP_Utilities\logs\Abox.txt

[4] 2009/02/04@22:07:(29) DATABASE: C:\Program Files\NISP_Utilities\config\Abox.sdb

[3] 2009/02/04@22:07:(29) TEMPLATE: C:\Program Files\NISP_Utilities\config\Abox.inf

[2] 2009/02/04@22:07:(29) Moved template from inf\ to config\

I can post a screen shot or all the code, or email, post / link. Anything. Please. *bangs head here*
www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
Link to comment
Share on other sites

Please don't double-post.

I have already answered you in this thread http://www.autoitscript.com/forum/index.php?showtopic=89021

Please read the first sentence before you accuse me of double posting. I wasn't sure where it was best suited and apologized and asked for it to be removed. Thanks for the help.

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
Link to comment
Share on other sites

First off.

It is a double post. You proved that by mostly everything. What you did also was bump your post by alternate means (creating a new thread). Rules say bump once every 24 hours, not before. it took you what, 5 minutes to become impatient for an answer?

If you post in the wrong place it will either get moved, locked or your question answered, so your odds are good.

Anyways good luck with your problem in your original thread.

Cheers,

Brett

Link to comment
Share on other sites

Folks,

I made the posts just minutes apart via a cut-n-paste and asked for one to be deleted if it was in the wrong place -- now it's a double-bump-post? I can't beleive how tough the crowd is :) I've got more advise on how to make a post then help with the original question/issue. I thought it was a fairly well written plea for someones expert AutoIt advice from someone who has been in the community awhile. It's ok I've learned my lesson and won't be making anymore posts in multiple categories. I'll just pick one and hope it's in the right place.

thanks,

avery

www.abox.orgAvery HowellVisit My AutoIt Websitehttp://www.abox.org
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...