Prevents updating of the control until the _GUICtrlEdit_EndUpdate function is called
#include <GuiEdit.au3>
_GUICtrlEdit_BeginUpdate ( $hWnd )
$hWnd | Control ID/Handle to the control |
Success: | True. |
Failure: | False. |
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
#include <GuiStatusBar.au3>
Example()
Func Example()
Local $idEdit, $hStatusBar, $hGUI
Local $sWow64 = ""
If @AutoItX64 Then $sWow64 = "\Wow6432Node"
Local $sFile = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE" & $sWow64 & "\AutoIt v3\AutoIt", "InstallDir") & "\include\_ReadMe_.txt"
; Create GUI
$hGUI = GUICreate("Edit Begin Update", 400, 300)
$idEdit = GUICtrlCreateEdit("", 2, 2, 394, 268)
$hStatusBar = _GUICtrlStatusBar_Create($hGUI, -1)
GUISetState(@SW_SHOW)
_GUICtrlEdit_BeginUpdate($idEdit)
_GUICtrlEdit_SetText($idEdit, FileRead($sFile))
_GUICtrlEdit_EndUpdate($idEdit)
_GUICtrlStatusBar_SetText($hStatusBar, @TAB & "Lines: " & _GUICtrlEdit_GetLineCount($idEdit))
_GUICtrlStatusBar_SetIcon($hStatusBar, 0, 97, "shell32.dll")
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example