Hi,
aus aktuellem Anlass (laut Shoutbox (ausser ich habs falsch interpretiert, egal! :D)):
Spoiler anzeigen
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
dim $start_size = 20, $resize, $resize_old
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 80, 192, 114)
$Input1 = GUICtrlCreateInput("Input1", 16, 24, $start_size, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$resize = StringLen(GUICtrlRead($Input1)) * 6
[/autoit] [autoit][/autoit] [autoit]if $resize_old <> $resize then
GUICtrlSetPos($Input1, 16, 24, $resize + $start_size, 21)
$resize_old = $resize
EndIf
WEnd
[/autoit]Funktioniert ganz gut, denk ich. Lässt sich sicherlich auch auf andere Controls ausweiten
Gruß
x0r