Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form won't run modally
Message
De
28/01/2003 20:49:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form won't run modally
Divers
Thread ID:
00746504
Message ID:
00746504
Vues:
61
I have a top level form that hides, calls another top level form then unhides when the second top level form finishes. There is quite a bit of processing that happens in the Init method of the second form so there is quite a pause between the first form hiding and the second form displaying.

I am trying to keep my forms as loosely coupled as possible.

I've tried the following in an effort to provide feedback to the user while the form loads....
  local lcMsgText, loMsg, loJobEd
  
  lcMsgText = 'Please wait while the Employee Time data is being prepared for you.'
  
  do form forms\Msg name loMsg linked with lcMsgText
    
  thisform.Hide()
  do form forms\JobEditor name loJobEd linked noshow
  loMsg.Hide()
  loJobEd.Show(1)
  thisform.Show()
What happens is the Msg displays for a few moments, then JobEditor flashes on the screen, closes and I'm left back at the original calling form. I've tried using Show(0), (1), (2) just in case there was a typo in the Hacker's Gude to VFP 6.0. I've set JobEditor's windowstyle to modal. I've tried pulling out the Msg code and JobEditor's noshow parameter and the form just flashes before returning to the calling form.

I am running VFP 6.0 sp5 on Windows XP Pro.
Any insight or help would be greatly appreciated. :)
---------
Single field, surrogate primary keys....because it's sexier!

Third normal form is more than just a good idea.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform