Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active Form and _Screen.Visible = F
Message
 
À
21/11/1997 12:03:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061624
Message ID:
00061636
Vues:
36
>Hi
>Could anyone help me with the problem of an initial form or splash
>screen not being 'active', after issuing _SCREEN.Visible = F. I saw part of
>a newsgroup post in which the author seemed to be indicating that if you do any
>menu or toolbar handling, after issuing _screen.Visible = .F., you would
>shift focus to the _screen, even though it is not visible, thus disabling
>the splash screen or initial form. This sounded reasonable so I tried the
>following test with no success :
>
>I created the following simple MAIN.PRG
>    _SCREEN.Visible = .F.
>    Do Form SPLASH Name FRMSPLASH Linked
>    Wait Window '' Timeout 5
>    FRMSPLASH.Release()
>    _SCREEN.Visible = .T.
>    READ EVENTS
>
>The splash form is defined as a 'show as top level form' and has no code in
>any of it's methods.
>When you run main.prg, the splash screen shows for 5 seconds, as you would
>expect, but it is NOT the active window on the windows desktop. It is shown
>disabled. This happens with any program in which I try to hide the _screen.
>The newsgroup thread that I saw a part of, also referenced calling a windows API
>function to set the active window. Can anyone tell me if this is the
>solution, or am I just mising something in Fox? If anyone has used an API
>call to correct this, could you post it for me.
>
>Thanks In Advance for any help
>Bill Sabo

you could use the BringWindowToTop api call which takes a window handle.
you can get the window handle using the FindWindow api which will search on window title ( i think )
if your splash screen doesn't have a title bar, this may not work for you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform