zbatev,
Yes it does;
#include <buttonconstants.au3>
#include <editconstants.au3>
#include <guiconstantsex.au3>
#include <windowsconstants.au3>
#include <staticconstants.au3>
#include <constants.au3>
#include <winapi.au3>
$Form1 = GUICreate("Form1", 246, 165, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 225, 121, BitOr($ES_AUTOVSCROLL, $ES_AUTOHSCROLL))
GUICtrlSetData(-1, "this is supposed to be a very long and whiny statement that should force this string to go to the next line and I hope it does.")
$Checkbox1 = GUICtrlCreateCheckbox("Wrap Text", 152, 136, 81, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
$iStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($Edit1), $GWL_STYLE)
If GUICtrlRead($Checkbox1) = 1 Then
ConsoleWrite("Checked" & @CRLF)
$sData = GUICtrlRead($Edit1)
GUICtrlDelete($Edit1)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 225, 121, BitOr($ES_AUTOVSCROLL, $ES_MULTILINE))
GUICtrlSetData($Edit1, $sData)
Else
ConsoleWrite("UnChecked" & @CRLF)
$sData = GUICtrlRead($Edit1)
GUICtrlDelete($Edit1)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 225, 121, BitOr($ES_AUTOVSCROLL, $ES_AUTOHSCROLL))
GUICtrlSetData($Edit1, $sData)
EndIf
EndSwitch
WEnd
I am still looking into how you can do it dynamically by changing the style alone.
M23
Edit: Looks like it cannot be done - the styles are seemingly among those that cannot be altered dynamically. Even MSDN suggests the delete/create method.