Jump to content
Sign in to follow this  
THEDEFILEDONE

Help with edit boxes

Recommended Posts

THEDEFILEDONE

Im looking for a way to get multiple lines in an edit box(right when it is created). I know you can do some --> "something", & @CLRF & "something else", but that is not very realistic, as I have a few hundred lines. I've been looking, and looking, and looking for a few hours. Any and all help will be greatly appreciated!!!

I also want it with only vertical scroll, and text centered, but I can do that solo ").

EDIT

I just remembered that a message box would be awesome as well, but I can not figure out how to put in the vertical scroll bar.

I prefer an edit box, because one can copy out of, and paste into.

Edited by THEDEFILEDONE

Share this post


Link to post
Share on other sites
PsaltyDS

Im looking for a way to get multiple lines in an edit box(right when it is created). I know you can do some --> "something", & @CLRF & "something else", but that is not very realistic, as I have a few hundred lines. I've been looking, and looking, and looking for a few hours. Any and all help will be greatly appreciated!!!

I also want it with only vertical scroll, and text centered, but I can do that solo ").

EDIT

I just remembered that a message box would be awesome as well, but I can not figure out how to put in the vertical scroll bar.

I prefer an edit box, because one can copy out of, and paste into.

Pack whatever you want into a string variable and use that for the initial text of the control:
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

$sMultiLine = ""
For $n = 1 To 100
    $sMultiLine &= "This is line " & $n & @CRLF
Next

$hGUI = GUICreate("My GUI edit", 200, 200)
$ctrlEdit1 = GUICtrlCreateEdit($sMultiLine, 10, 10, 180, 180, $ES_AUTOVSCROLL + $WS_VSCROLL)
GUISetState()
ControlSend($hGUI, "", $ctrlEdit1, "{END}")

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

>_<


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.