Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VFP] Default back color of Antview control
#1
Hi Guys,

Just wondering if there is a way to specify the default back color of the control displayed before navigating to a page.

For the time being, I have set visible to false until the page loads, but on setting visible to true I get a slight flash before the page is displayed.

Thanks
Reply
#2
Hi,

At the moment setting the background color of the control isn't exposed.
But that can be added. This will probably take a few days, most likely we can get it to you somewhere early next week.
We will contact you by email with a private version once this is implemented.

--
Wil
Reply
#3
Hi Wil,

Thank you, that sounds perfect!
Reply
#4
Next release of AntView has a new property transparent which you can set in order to prevent the flashing of the AntView control.

However, there's a few things to keep in mind.
You can only see the transparency before navigation or if your html page has a transparent background color set.

Besides that somehow VFP is still setting a background color for the control.
You can work around that by setting the color the same as the color of the underlying control. If that is a form control then that code would look like so:
Code:
thisform.oAntView.object.Transparent = .T.
thisform.oAntView.Color = thisform.BackColor

The need to set the color there is not required on all development environments. So far we've only seen this on VFP, but it is certainly possible that there are other environments that need a similar workaround.
--
Wil
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)