Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus does not get on _SCREEN
Message
De
05/12/1997 11:28:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Focus does not get on _SCREEN
Divers
Thread ID:
00064039
Message ID:
00064039
Vues:
65
When running an EXE and having a splash screen, which is a top level form, before my application appear, I have discovered a weird behavior.

When my splash screen is displayed, I setup the application. One of those setup is to show the menu. The menu is having a SKIP for at certain places where it relies on TYPE(_screen.ActiveForm)='O'. When the menu is shown, the items relying on that will be disable as the top level form is shown.

Then, the setup is finished and the top level form is closed. If I click on the menu, the items are still disabled. The only way to make them react is to click on the _SCREEN and click back on the menu.

Before the READ EVENTS, I tried the activate menu but this didn't help. The only thing I have found is to MOUSE CLICK AT 1,1 or to have a WAIT WINDOW. Then, clicking on the menu, will have it refreshed. But, this is not the workaround I would like to do.

What can I do programmaticaly to make the menu refresh. What I don't understand is the activate menu should have refreshed it but it didn't. Even if the top level form is closed with Loading.Release() followed by Release Loading, after that, at the READ EVENTS, the TYPE(_screen.ActiveForm) is still equal to 'O'. But, as soon as I click on the menu, the TYPE(_screen.ActiveForm) become 'U' which is normal and should have been the case in the first TYPE.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform