ajit Posted February 20, 2010 Share Posted February 20, 2010 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> #include <TabConstants.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $GUI_Button_browse = GUICtrlCreateButton("Browse", 430, 530, 100, 30) $tabs = GUICtrlCreateTab(10, 10, 600, 500, $TCS_FIXEDWIDTH) GUICtrlSetResizing($tabs, $GUI_DOCKRIGHT + $GUI_DOCKTOP) $PDF_TAB = GUICtrlCreateTabItem("TAB1") $GUIActiveX = GUICtrlCreateObj($oIE, 30, 50, 480, 380) GUISetState() ;Show GUI ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $GUI_Button_browse $pdf_file = FileOpenDialog("Select Pdf File", @ScriptDir & "\", "Pdf files (*.pdf)", 1) _IENavigate ($oIE, $pdf_file, 0 ) EndSelect WEnd Hi: I am stuck with this unresponsive GUI. I am trying to open a pdf file in my GUI. The problem only occurs when I use the code in a GUI with tab control, not otherwise. Please help me. Ajit Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now