At the beginning of my program, I open a modeless POPUP window. Then I create a WebView object and put it in this non-modal dialog. However, further work of the program is not performed because WebView is still a modal window
DEFINE DIALOG 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()
WebView on a non-modal window
- Antonio Linares
- Site Admin
- Posts: 42268
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WebView on a non-modal window
Dear Natter,
Please don't call oWebView:Run() as it uses a modal loop, neither oWebView:Destroy() or you will destroy it.
At the end of the app, you destroy it, or when the popup window is closed
Please don't call oWebView:Run() as it uses a modal loop, neither oWebView:Destroy() or you will destroy it.
At the end of the app, you destroy it, or when the popup window is closed
Re: WebView on a non-modal window
Thank you, Antonio! And what is the webview:Run() method for ?
- Antonio Linares
- Site Admin
- Posts: 42268
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WebView on a non-modal window
It is just an event loop handler, not needed as FWH uses its own