Hi,
if I have an invisible browser (by setting it s attribute at design time) and load a URL, it doesnt fire any events. I would like to use the OnLoaded event to set it visible again, but this never fires.
Regards
Michael
Professional Software Development Tools
Hi,
if I have an invisible browser (by setting it s attribute at design time) and load a URL, it doesnt fire any events. I would like to use the OnLoaded event to set it visible again, but this never fires.
Regards
Michael
Instead of setting it invisible, dimension it at 1x1 px or put it outside the window area.
on OnLoaded event, set its position/dimensions to the desired values.
We are slowly invading your planet to teach lazy humans to read the user manual.
But don't be scared: we are here to help.
I know, but that doesnt solve my (main) problem with the browser. I have the browser sitting on a black background. Even If I set it to 1 pixel at design time and change the size at the OnLoaded Event, I have a short flickering with the white background of the browser itself. (The loaded html page has a black background too and loads an swf file)
I do not fully understand why this short flicker happens (OnLoaded means the page is already loaded and thus... the background should be black... )
Thats why I would like to try to make it completely invisible.
No flickering if you leave the Web size at its original and put it outside the app window, but be sure that at least 1 px of the Web object remains inside the window, otherwise it will not load the URL.
This is why an invisible Web does not work if invisible, probably is something related with its window handle.
We are slowly invading your planet to teach lazy humans to read the user manual.
But don't be scared: we are here to help.
Trying that brings even more flicker and you see the browser outside the active window when setting its position in the onLoaded event (I need to use Kiosk mode) The browser is visibly moving for a tenth of a second or even less.
I think I will choose the 1 Pixel method as this brings at least only a short flicker.
thanks for your help!
I still assume this browser behaviour is a bug but maybe related to the IE control itself than to AMS. I will try the same tests in VB and see what happens there.
.
Its definately not related to the ie control itself. Tried in VB6 I can load URL and all events are firing even if the control itself is invisible.
So, I think its really a bug in AMS.
As I supposed in a previous post, it will be probably related to the fact that AMS is not able to retrieve the window handle of the control when it is hidden.
The user manual reports that if the control fires events even if not visible, by this, it's definitively a bug.
We are slowly invading your planet to teach lazy humans to read the user manual.
But don't be scared: we are here to help.