Search found 36 matches: getwindow

Return to advanced search

Re: TWebView window size

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 ;        ...
by Antonio Linares
Sat Feb 03, 2024 9:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TWebView window size
Replies: 14
Views: 849

Re: WebView2 Essentials: Guides, Tips & Resources

... 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. ...
by Otto
Wed Jan 10, 2024 7:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView2 Essentials: Guides, Tips & Resources
Replies: 2
Views: 480

Re: WebView window

... 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 )
by Antonio Linares
Mon Dec 26, 2022 7:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView window
Replies: 16
Views: 980

Re: incrustar webview en un TDockPnel

Estimado Leandro,

La clase TWebView no tiene la DATA hWnd sino que tienes que usar este método GetWindow():

SetParent( oB:GetWindow(), o:hWnd )

Aún asi, se queda como congelado, sin poder moverlo con el ratón. Estoy revisándolo por si veo algo más :-)
by Antonio Linares
Sat Dec 10, 2022 9:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: incrustar webview en un TDockPnel - SOLUCIONADO
Replies: 19
Views: 1224

Re: Hierarchy of windows

... 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 )  
by nageswaragunupudi
Wed Aug 10, 2022 6:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hierarchy of windows
Replies: 6
Views: 527

Re: New Class TWebView in next FWH build

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 ...
by Antonio Linares
Tue Jun 21, 2022 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New Class TWebView in next FWH build
Replies: 23
Views: 2192

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6329

Re: How to keep a appl. on top of the dialog on resize ?

... "COLORPICKER is not running !", "Attention" ) ENDIF RETURN NIL // ---------- FUNCTION FINDWND( cTitle ) local hWnd := GetWindow( GetDesktopWindow(), GW_CHILD ) WHILE hWnd != 0 IF Upper( cTitle ) $ Upper( GetWindowText( hWnd ) ) RETURN hWnd ENDIF hWnd = GetWindow( hWnd, ...
by ukoenig
Sat Aug 01, 2015 1:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2424

Re: "Snap" for Clipper

...     2384 GETTEXTWIDTH()         (function  in ?)    WINDOW.PRG      622  1733  3323 GETWIDTH()             (function  in ?)    WINDOW.PRG      620 GETWINDOW()            (function  in ?)    WINDOW.PRG     3261  3289 GETWINDOWLONG()        (function  in ?)    WINDOW.PRG      531   881  2776  3867 ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6689

Re: Un control en un TPanel

... # 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 ...
by antolin
Mon May 27, 2013 8:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un control en un TPanel
Replies: 11
Views: 2592

Re: bug in FW 13.04 combobox

For instance, in Method Initiate() we can do:

Code: Select all  Expand view
     if ::oGet:hWnd != 0
         ::oGet:Link()
      endif  


so if GetWindow() returns zero, then there is no windows handle in the control so it is not used.
by Antonio Linares
Mon May 20, 2013 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bug in FW 13.04 combobox
Replies: 82
Views: 29082

Re: Como obtener un handle?

Gracias FiveWiDi, pero no me sirve pues twcapture necesita el nombre del Window y no lo conozco.

Con GetWindow() de C++ consigo algunos handles, pero no consigo transferirles el control con ShowWindows(). ¿Alguna idea?.

Gracias
by antolin
Fri Mar 09, 2012 12:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como obtener un handle?
Replies: 2
Views: 420

Re: GPF error

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...
by Patrizio
Tue Apr 20, 2010 6:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GPF error
Replies: 11
Views: 2558

Re: Control ID en un diálogo

... 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... ...
by Daniel Garcia-Gil
Thu Jan 14, 2010 6:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Control ID en un diálogo
Replies: 10
Views: 1780

Re: Process is running?

... ? 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 ...
by Ugo
Wed Nov 25, 2009 7:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process is running?
Replies: 10
Views: 1675
Next

Return to advanced search