Skip to content

Commit 8c3c167

Browse files
authored
Update 004-FileViewerDemo_Loop.au3
1 parent 738ae00 commit 8c3c167

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/004-FileViewerDemo_Loop.au3

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
_Example()
3737

3838
Func _Example()
39-
; Create the UI
39+
ConsoleWrite("! MicrosoftEdgeWebview2 : version check: " & _NetWebView2_IsAlreadyInstalled() & ' ERR=' & @error & ' EXT=' & @extended & @CRLF)
40+
41+
; Create the GUI
4042
Local $iHeight = 800
4143
Local $hMainGUIWindow = GUICreate("WebView2 .NET Manager - Demo: " & @ScriptName, 1100, $iHeight, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPCHILDREN))
4244
Local $idLabelStatus = GUICtrlCreateLabel("Status: Initializing Engine...", 10, $iHeight - 20, 1080, 20)
@@ -76,7 +78,7 @@ Func _Example()
7678

7779
$s_PDF_FileFullPath = $a_Files[$IDX_File]
7880
GUICtrlSetData($idLabelStatus, $sProgress & ' - Navigation started: ' & $s_PDF_FileFullPath)
79-
_NetWebView2_NavigateToPDF($oWebV2M, $s_PDF_FileFullPath, '#view=FitH', 1000, True)
81+
_NetWebView2_NavigateToPDF($oWebV2M, $s_PDF_FileFullPath, '#view=FitH', $NETWEBVIEW2_MESSAGE__TITLE_CHANGED, "", 5000, 1000, True)
8082
GUICtrlSetData($idLabelStatus, $sProgress & ' - Navigation completed: ' & $s_PDF_FileFullPath)
8183
ConsoleWrite("! =Example= @SLN=" & @ScriptLineNumber & ' ' & $s_PDF_FileFullPath & @CRLF)
8284
If $bSleep_UserReaction Then Sleep(2000) ; simulates user reaction on PDF

0 commit comments

Comments
 (0)