Search found 76 matches: setparent

Return to advanced search

Re: WebView2 Essentials: Guides, Tips & Resources

... nHeight, nHints): Sets the size of the web view window with optional size hints. Print(): Invokes the print function of the web view. SetParent(oWnd): Sets the parent window of the web view. SetUserAgent(cUserAgent): Sets the user agent string of the web view. Terminate(): Terminates ...
by Otto
Wed Jan 10, 2024 7:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView2 Essentials: Guides, Tips & Resources
Replies: 2
Views: 480

Webview question

... ), .t. ) return nil FUNCTION CreateWebView(oDlg, cUrl) LOCAL oWebView oWebView := TWebView():New() Msginfo("webview new") oWebView:SetParent( oDlg ) oWebView:bOnBind = { | cJson, nCalls | MsgInfo( cJson, nCalls ) } oWebView:Bind( "SendToFWH" ) RETURN oWebView FUNCTION ...
by Randal
Thu Jun 29, 2023 1:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Webview question
Replies: 36
Views: 2929

Re: Change of control owner

Dear Yuri,

When you create the TButton you use .. OF <TPanelObject>

Another way is to use Windows API function SetParent()
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent
by Antonio Linares
Fri Apr 14, 2023 8:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Change of control owner
Replies: 1
Views: 139

Re: WebView window

Yes, I need to make frequent site requests and read the changes. This is a very convenient algorithm for me and I do not understand why in this case the code block :bonBind does not work :cry:

the oWebKds:SetParent() method works, but the oWebKds:Eval() method does not
by Natter
Mon Dec 26, 2022 4:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView window
Replies: 16
Views: 981

WebView on a non-modal window

... oKds FROM 0,0 TO 0,0 PIXEL ; STYLE nOR(WS_POPUP) COLOR CLR_BLACK, CLR_WHITE ACTIVATE DIALOG oDlg NOWAIT oWebView := TWebView():New() oWebView:SetParent(oDlg) oWebView:Run() oWebView:Destroy()
by Natter
Mon Dec 12, 2022 10:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView on a non-modal window
Replies: 3
Views: 330

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: Questions about WebView

I am creating an oWebview object:=TWebview():New and specify for it the parent POPUP dialog box oDlg - oWebview:SetParent(oDlg). 1. Whether the webview will be resized automatically when the parent window is resized ? 2. Is it possible to refer to the oWebview object as a control ...
by Natter
Mon Dec 05, 2022 12:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Questions about WebView
Replies: 26
Views: 1609

Re: Questions about WebView

3 and 4.:

Class TWebView provides a Method SetParent( oWnd ) so you can make it child of any window, dialog or control :-)
by Antonio Linares
Wed Nov 23, 2022 3:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Questions about WebView
Replies: 26
Views: 1609

Re: webview2 object WINDOW/DIALOG

Hi Hakan, thank you. I will run all the samples of the post you mentioned. I tested with: METHOD SetParent( oWnd ). I will try to extend the method and pass width and height and top. This is such a great class. Here is a test with bootstrap button. I think now HTML for ...
by Otto
Sat Aug 20, 2022 8:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: webview2 object WINDOW/DIALOG
Replies: 3
Views: 296

Re: webview2 object WINDOW/DIALOG

Dear Otto,

oWebView:SetParent( oWnd )
by Antonio Linares
Sat Aug 20, 2022 8:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: webview2 object WINDOW/DIALOG
Replies: 3
Views: 296

Re: New Class TWebView in next FWH build

Dear Giovany, Yes, Class TWebView provides a Method SetParent( oWnd ) so you can make it child of any window, dialog or control :-) I was creating a class for this, but as I'm not an expert in C++, I stopped to wait for the native fivewin class. In ...
by Giovany Vecchi
Wed Jun 22, 2022 1:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New Class TWebView in next FWH build
Replies: 23
Views: 2192

Re: New Class TWebView in next FWH build

Dear Giovany,

Yes, Class TWebView provides a Method SetParent( oWnd ) so you can make it child of any window, dialog or control :-)
by Antonio Linares
Tue Jun 21, 2022 8:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New Class TWebView in next FWH build
Replies: 23
Views: 2192

Re: IE

You have to supply 0, 0 to WebView_Create(). It does not work using params there

But you can make it child of any other window using SetParent( webview_get_window( hWebView ), hWndParent )
by Antonio Linares
Mon Jun 06, 2022 6:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: IE
Replies: 39
Views: 1678

Re: Using WebView with Borland !!!

... :-) > Funciona con xHarbour? Sólo lo hemos probado con Harbour por el momento > * Se puede incrustar dentro de cualquier control? Si, usando SetParent( hWndWebView, hWndParent )
by Antonio Linares
Thu Feb 03, 2022 10:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using WebView with Borland !!!
Replies: 91
Views: 7671

Re: Bug TRibbonBar en windows7

Buenas tardes para todos Mediante el método de prueba y error, logre determinar que el error se produce al momento hacer el llamado de a función SETPARENT(). El problema es que si la quito el cuadro de dialogo no sale contenido dentro del control tdockpnel. Como les comente anteriormente solo ...
by leandro
Thu Feb 11, 2021 7:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bug TRibbonBar / TDockPnel en windows7 (Solucionado)
Replies: 3
Views: 300
Next

Return to advanced search