Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VFP] Modal Window not displaying
#6
(2022-10-17, 12:46:28)wila Wrote: I might have a workaround.

Got the idea from here:
https://www.tek-tips.com/viewthread.cfm?qid=77132

The idea to change the modal state of the form from the OnCreateWebViewCompleted seems that it is possible if you temporarily set the form's visibility to false for a moment.

eg.

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

thisform.Visible = .F.
thisform.WindowType = 1
thisform.Visible = .T.

That actually runs for me and the form is displayed as expected.

The other interesting part from the link above is that there are other controls that have this issue. Would be nice to know if there's a way for me to handle this in the control, but so far I haven't found what I should do for addressing that.
--
Wil

This works great to get the form to display. But, the control itself doesn't actually display; I can see that the navigate fires and is successful. The control is just in it's default "grey" state.

I was able to fix that by setting the control to visible = .f. and then .t., see below:

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

this.Visible = .f.
thisform.Visible = .F.
thisform.WindowType = 1
thisform.Visible = .T.
this.Visible = .t.
Reply


Messages In This Thread
[VFP] Modal Window not displaying - by echolis - 2022-10-12, 22:35:42
RE: [VFP] Modal Window not displaying - by wila - 2022-10-13, 12:43:49
RE: [VFP] Modal Window not displaying - by wila - 2022-10-17, 12:33:01
RE: [VFP] Modal Window not displaying - by wila - 2022-10-17, 12:46:28
RE: [VFP] Modal Window not displaying - by echolis - 2022-10-31, 16:25:07
RE: [VFP] Modal Window not displaying - by wila - 2022-10-31, 18:13:55
RE: [VFP] Modal Window not displaying - by wila - 2023-03-31, 14:46:48
RE: [VFP] Modal Window not displaying - by wila - 2023-04-18, 14:32:54

Forum Jump:


Users browsing this thread: 1 Guest(s)