Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Display A Form, But NOT Give It Focus?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01205491
Message ID:
01205786
Vues:
15
Hi Scott,

Not tested, but

you might try playing with API

DECLARE Long ShowWindow In Win32API Long, Long
ShowWindow(_Screen.hWnd, 4)

note, the 4 in the second argument is SW_SHOWNOACTIVATE: Displays a window at its most recent size and location. Does not change the active window.

If you google VFP ShowWindow you'll find several examples.

>I have a form that runs in the background, and periodically checks to see if there are any new entries in a table (A "To Do"/"Schedule" notification form). My users complain that it "pops up" (gee, imagine that) when they are in the middle of something and they loose keystrokes because of it.
>
>So they want the option to make it become visible, but in the background. They don't want it to become the active form.
>
>I can't figure out how to make this work. Thisform.Visible =.T., makes it active. Thisform.Show(), makes it active... I just want it to become visible, but stay where it is in the focus stack.
>
>Any ideas?
>
>Thanks,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform