#include #include #include #include #include #include #include Local Const $WIDTH = 1000 Local Const $HEIGHT = 600 Global $hnd_gui, $hnd_crl Local $i = 0 $hnd_gui = GUICreate("Title",$WIDTH,$HEIGHT,0,0,$WS_SIZEBOX) $hnd_ctrl = GUICtrlCreateEdit("",0,0,$WIDTH-3,$HEIGHT-25,BitOR($ES_READONLY,$WS_VSCROLL,$ES_AUTOVSCROLL)) ; Line activated : ; * user can click ; * text is inserted at this location (bad for me) ; * vertical scroll bar is enabled (good for me) ; Line de-activated : user cannot click, ; * user cannot click ; * text is always inserted at end (good for me) ; * vertical scroll bar is disabled (bad for me) GUICtrlSetState($hnd_ctrl,$GUI_DISABLE) ; <== THIS LINE GUISetState(@SW_SHOW,$hnd_gui) WinActivate($hnd_gui) GUISetOnEvent($GUI_EVENT_CLOSE,"_GUI_Close",$hnd_gui) Opt("GUIOnEventMode",1) For $i=1 To 100 GUICtrlSetData($hnd_ctrl,StringFormat("Time Stamp #%d" & @CRLF,$i),0) Next While $hnd_gui<>0 GUICtrlSetData($hnd_ctrl,StringFormat("Time Stamp #%d" & @CRLF,$i),0) $i += 1 Sleep(250) WEnd Func _GUI_Close() $hnd_gui = 0 EndFunc