Page 1 of 1
[Resolved] PureBasic Wait Screen
Posted: Fri Apr 14, 2017 9:18 am
by ramme
This white screen with hourglass icon shows up with slow loads.
Does anyone know how to get a handle to this screen so it could
be minimized or made more attractive or have a message added?
It seems to hog the top z-order, even if you try to show a prioritized
sticky window.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 10:33 am
by mk-soft
Code ?
I think it´s a invalid event loop...
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 11:01 am
by ramme
You mean like repeat forever ... forever or WaitWindowEvent()?
I don't think so. I figured that it was just a screen PB showed
for a really long wait.
Example code is very difficult, since I am running Windows 7
from a thumb drive and the I/O is very slow, which I think is
causing the screen to show up.
I am viewing a series of screen savers sort of like a slide show.
They are embedded in the program, so there is a certain decode
time necessary. I get this wait screen between Screen savers.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 11:19 am
by TI-994A
ramme wrote:This white screen with hourglass icon shows up with slow loads.
Perhaps a screenshot of this mysterious screen?

Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 11:55 am
by IdeasVacuum
Hi ramme - what gadget type is used to display the screensavers? If it is a WebGadget(), could it be a feature of that gadget I wonder.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 1:05 pm
by ramme
Hi TI-994A,
This is becoming just as amusing as confusing.
I tried to take a screenshot and just got a blank
white screen without the cursor. Don't see much
point in sending that to you.
Hi IdeasVacuum,
No, I just runprogram(screensaver.scr). The IE registration
could be causing a problem. Even though the method
you devised worked fine on the example I showed you,
I have not been able to incorporate it into my main program.
It is proving very difficult to display the webgadget window.
The problem is that I have four threads running and PB doesn't
allow opening a screen from a thread, so I am trying to work
on some sort of call back or maybe just a global switch.
I think that I have been programming so long that my confidence
greatly exceeds my current ability in PureBasic. I might have to
break things down and reassemble them.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 1:18 pm
by ramme
Duh, of course the cursor didn't show in the screenshot.
Why would it? It's the mouse wait cursor.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 2:32 pm
by IdeasVacuum
It is the .scr file itself that displays the white window! It is simply taking time to load, and that is probably because of the device it is being run from. .scr files are actually .exe files.
Re: PureBasic Wait Screen
Posted: Fri Apr 14, 2017 11:49 pm
by ramme
Hi IdeasVacuum,
I think that you are correct. Technically, though, it is probably Windows itself, since none of the screen savers have white wait screens coded in them.
It looks like I am stuck with the things. My apologies to PureBasic for making a totally erroneous assumption, when it is actually blameless.
I went back to my last stable version (April 9). The white wait screen is only appearing on the slow html load.
PS.
I change the suffixes to scr or exe depending upon whether I want a full or windowed screen.