Progress Bar on shown event

I would like to use a gif image to be display when i show a webpage/container.

so it should be visible until my Open/Shown event code get executed.

Can anyone guide me to do this ?

Is it for Web 1.0 or Web 2.0 ?

It sure would be nice if we had two separate targets here in the forum. Web 1.0 and Web 2.0

First thing you must remember is that the UI will only be updated at the end of events.

So you need to have an event end in order to show the gif.

The best way to go will be to

  1. Show the gif
  2. Launch a timer. It does not have to be very slow. Can be a 20millisecond timer
  3. In the timer action event, show the webpage/container.
  4. In the webpage Shown event, hide the Gif.
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.