Sign in to follow this  
Followers 0
JonnyThunder

Scroll to bottom of edit box

4 posts in this topic

#1 ·  Posted (edited)

Hello,

I have an edit box which I'm using to output console log information. Whenever new information is added to the edit box, it automatically pings back to the top of the box again. How can I force the scroll bars to the bottom, to display the newest information added.

Also, is there any way to disable direct editing of this box? If I use $GUI_DISABLE it turns the box unreadably grey! Any way of disabling the editing while still keeping it white??

Thanks,

JT

Edited by JonnyThunder

Share this post


Link to post
Share on other sites



Ahhh never mind - found it. Used the following (for those who may search for this answer!)....

_GUICtrlEdit_Scroll($output_window, $SB_SCROLLCARET)

Share this post


Link to post
Share on other sites

Ahhh never mind - found it. Used the following (for those who may search for this answer!)....

_GUICtrlEdit_Scroll($output_window, $SB_SCROLLCARET)
Hi, i have a problem whit this...

When i use it like is used in the help the next error is prompt at compilation:

C:\Archivos de programa\AutoIt3\Examples\Cliente.au3 (24) : ==> Variable used without being declared.:

_GUICtrlEdit_Scroll($Edit1, $SB_SCROLLCARET)

_GUICtrlEdit_Scroll($Edit1, ^ ERROR

This is mi code:

#include <GUIConstants.au3>

#include <GUIConstantsEx.au3>

#Include <GuiEdit.au3>

#include <WindowsConstants.au3>

$Edit1 = GUICtrlCreateEdit("", 349, 44, 221, 143, 0x0800 + 0x00200000)

_GUICtrlEdit_Scroll($Edit1, $SB_SCROLLCARET)

In fact this error its happen to me when i use any constant. I must use the numeric value to replace it, like in the creation of the Edit control...

Share this post


Link to post
Share on other sites

you must use htis incude:

#include <ScrollBarConstants.au3>

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