2022-12-13, 15:41:43
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.
--
Wil
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