Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How identify that main window has been brought to the fr
Message
De
26/07/2002 12:50:57
 
 
À
25/07/2002 23:24:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00681483
Message ID:
00683064
Vues:
39
This message has been marked as the solution to the initial question of the thread.
>Though this approach works on form level for Activate event I didn't manage
>to achieve anything for _Screen. There is no Activate event for _Screen object ; anything else ( Show , Refresh, Draw ) doesn't seem to suitable for the situation like this. I tried everything ( including Activate) anyway without success. So I am puzzled now what was meant in FAQ by
>"The approach is very useful to catch, for example, events of the _Screen form. "
>

Actually I have not tested my previous sugestion. The only event that fires when the main VFP window receives (or looses focus) is the _Screen.Paint() event. So you can use this event, but be careful because ANYTHING that changes the view of the main VFP window (for example other overlaping windows that are moved) will fire this event.

As an alternative you can use the _Screen.Resize() event and when activating the VFP window - first minimize it and then Maximize it. It is not a pretty approach, but it will work.

As a third option I think I have seen an FLL that alows you to expose _SCREEN events, but I do not think that it will help you here. (_Screen.Activate event is fired only when you execute _Screen.Show)

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform