Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VFP] WebView2 Container always on top / not contained within Page Frame
#3
Hi,

For those reading along.

This is indeed an issue.
The "gray box that appears on top of the tabs" even with the first tab activated until you navigate to the second tab is obviously not acceptable. This happens because the control was activated and navigated in the init method of the form.
There are some things in VFP that need the AntView control to work slightly different for it to be entirely happy without needing workarounds. For now that is on the list of things to research.
There is however a workaround.

The workaround for this issue is as follows.
You can't set the visible state of the AntView control before it is created and as such you need to wait for that until the control has been created.

As such setting the visible property to false in the OnCreateWebViewCompleted event works and gets rid of the gray box.

Code:
*** ActiveX Control Event ***
LPARAMETERS hresult

thisform.pageframe1.page2.oAntView.Visible = .F.

--
Wil
Reply


Messages In This Thread
RE: [VFP] WebView2 Container always on top / not contained within Page Frame - by wila - 2022-12-13, 15:41:43

Forum Jump:


Users browsing this thread: 1 Guest(s)