Sign in to follow this  
Followers 0
GrahamT

Edit Box Question

3 posts in this topic

I am using a List box from which I select individual lines of text, to build up a larger block of text in an EditBox.

I don't want a horizontal scroll bar, I want the text to wrap when it reaches the right-hand side of the EditBox. I just can't find out how to do it. Any ideas?

Thanks,

Graham

Share this post


Link to post
Share on other sites



Here is an edit box made with Koda that wraps text

#include <GUIConstants.au3>
; == GUI generated with Koda ==);
$Form1 = GUICreate("AForm1", 622, 448, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 128, 72, 145, 145, $ES_WANTRETURN)
GUICtrlSetData($Edit1, "AEdit1")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Thats great - thanks very much for your help!

Graham

Here is an edit box made with Koda that wraps text

#include <GUIConstants.au3>
; == GUI generated with Koda ==);
$Form1 = GUICreate("AForm1", 622, 448, 192, 125)
$Edit1 = GUICtrlCreateEdit("", 128, 72, 145, 145, $ES_WANTRETURN)
GUICtrlSetData($Edit1, "AEdit1")
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
;;;;;;;
    EndSelect
WEnd

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