Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A start form
Message
 
To
15/04/1998 10:01:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00092124
Message ID:
00092145
Views:
25
>>>hi all
>>>
>>>how can i make in VFP 5.0 to take a form ( or a Bitmap?) that runs while the application start, you know, like when i star some program like word or excel etc.
>>>it appears a logo ina a form and still some secons while all the program start.
>>>
>>>are any way to make something like that in Vfp 5.0 ???
>>>
>>>thanks in advance!
>>
>>Take a look at the splash screen file in the download section.
>
>George,
>
>I don't know whether it was just me, but when I tried to use the splash screen it didn't seem to let the program load up in the background. i.e. it stopped the program loading for X seconds while the splash screen was displayed, then carried on.
>
>Any thoughts,
>
>Mike.

Mike,

I haven't used this particular version, so I can't comment on exactly what's going on there. What I can comment on is the general technique that should be used.

Naturally, the form should be modeless, so that the application can initialize while it's (the splash screen) being displayed. There's no way around some time being lost while the form itself initializes. The general format of the code may look something like:
* Assuming the class library is already set
* and _SCREEN is not visible
oSplash = CREATEOBJECT('SplashScreen')
* Make sure it's displayed modeless
* even though it's the default condition
oSplash.Show(2)
* Do the initializing work
* Whether the _SCREEN is displayed before
* or after the splash screen's released is
* personal preference.
oSplash.Release
_SCREEN.Visible = .T.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform