We have implemented two new METHODs in Class TWebView: METHOD End() INLINE ( ::Terminate(), ::Destroy() ) and METHOD hWnd() INLINE ::GetWindow() they will be available in next FWH build So the code can be simplified this way: ACTIVATE DIALOG oDlg CENTERED ; ...
... Eval(cScript): Evaluates a JavaScript script in the context of the web view. Init(cScript): Initializes the web view with a JavaScript script. GetWindow(): Retrieves the window handle of the web view. Bind(cName, pFunction): Binds a native function to a JavaScript function in the web view. ...
... allow the use of coordinates Maybe this may work: #define SW_HIDE 0 #define SW_NORMAL 1 local oWebView := TWebView():New() ShowWindow( oWebView:GetWindow(), SW_HIDE ) ... then do the required startup code and finally: ShowWindow( oWebView:GetWindow(), SW_NORMAL )
... was different and my answer was different. While adopting Mr. Jimmy's advice, you need not write all the 'C' code. You can use the FWH function GetWindow() directly in your program with the same syntax. GetWindow( hWnd, 2 or 3 )
Dear Hakan, You can use SetWindowPos( oWebView:GetWindow(), 0, nX, nY, nWidth, nHeight, 4 ) You can run any javascript so you can do this from your FWH app: oWebView:Eval( "window.status = 'Some text in the status bar!!';" ) Regarding ...
... # 0 ) falla porque GetDlgItem( hDlg, ::nId ) devuelve 0 y se corta. Seguramente porque TPANEL no es un dialogo. El caso es que he probado con GetWindow( ::hWnd, GW_CHILD ), pero también devuelve 0, lo ponga donde lo ponga, en el INITITE del TPANEL o en el del TSAY y no lo comprendo por TCOMBO ...
Hello Antonio I have a casual GPF error and don't know how to resolve . The message is :Offset : 001fb5f and this is the section of the MAP file 0001:0001F02C c611_0 0001:0001F02C __SetAcceleratorTable 0001:0001F047 _HB_FUN_SETIDLEACT 0001:0001F04C _HB_FUN___GENGPF 0001:0001F058 _HB_FUN_WINRUN 0001...
... define, seguro los necesitaras #define GW_HWNDNEXT 2 #define GW_CHILD 5 #define GWL_ID (-12) GW_CHILD es un "flag" que usa la funcion GetWindow, por eso el prefijo (GW) http://msdn.microsoft.com/en-us/library/ms633515(VS.85).aspx GWL es para la funcion GetWindowLong... ...
... ? The process is in background! hWnd := FindWindow( 0, cWindowTitle ) MsgInfo( hWnd ) I tested without result! I tested also with GetTasks and GetWindow but nothing. In case that the task does not has a window, then you have to find its process id using EnumProcesses(): http://msdn.microsoft.com/en-us/library/ms682629(VS.85).aspx ...