Jump to content

Recommended Posts

Posted (edited)

Hi,

Edit: Question embedded & revised

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGui = GUICreate("Example", 785, 400, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_SIZEBOX, $WS_CAPTION, $WS_SYSMENU))
$idButton = GUICtrlCreateButton("OK", 310, 370, 85, 25)

Global $sdata, $idMyedit = GUICtrlCreateEdit("", 10, 10, 760, 310)
GUICtrlSetFont(-1, 11, 0, "", "Courier New")

Local $sString1 = "-A string that is *Whatever* long or short", $sString = $sString1

For $i = 1 To 4
    $sString &= $sString1
Next

GUICtrlSetData($idMyedit, $sString & @CRLF & @CRLF & "How do i get the string length at @LF (Of the Edit Ctrl) before the word warp occurs ??")


GUISetState(@SW_SHOW, $hGui)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE , $idButton
            ExitLoop
    EndSwitch
WEnd

 

Edited by Deye

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
×
×
  • Create New...