Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message Line
Message
 
À
05/02/2004 01:17:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00874225
Message ID:
00874434
Vues:
15
Another way to do it is to call Form.Draw() method. That should do it without the pause.
See also Disable buttons during process - odd behaviour Thread #856233

>Harry, when you call the method to update the label message does your program then continue to do some processing? If so then the problem is that VFP does not refresh the form properly while intense processing goes on. The solution is to issue a small pause after updating the label message but before starting the processing. eg an INKEY(0.1) would do it. You can also try using DOEVENTS which should force VFP to update the form.
>
>
>>I have a form that has a 4-page pageframe on it with a label object as a message line below the pageframe, (with some command buttons below the label object). I am using the message line instead of a WAIT WINDOW, and have a custom method on the form to call when I need to display a message. I use a parameter in the message-call to indicate whether the label caption is to contain nothing or a message.
>>
>>When I send a message to the method, (and change the mouse pointer to an hourglass), the mouse pointer is changed, but the message is not displayed. To research why, I put a SET STEP ON in the "show_message" method, and the message is then displayed while stepping through the code, and remains displayed until the "shut-off-message" call is made.
>>
>>Without the SET STEP ON, the message does flash very briefly when the "shut-off-message" call is made. Has anyone run across this? If I can't make it work, I'm back to the WAIT WINDOW to let the user know what is happening.
>>
>>Thanks,
>>
>>Harry
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform