FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TWebView2 focus fix
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TWebView2 focus fix
Posted: Thu Sep 25, 2025 11:33 AM
There is a little difference between TWebView and TWebView2 regarding the focus.

TWebView2 does not gives the focus to the webpage automatically. In order to do it this is required:

SetFocus( GetWindow( oWnd:hWnd, 5 ) ) // GW_CHILD

This way we properly give the focus to the webview hWnd :wink:
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: TWebView2 focus fix
Posted: Thu Sep 25, 2025 05:26 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion