Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving MESSAGEBOX form erases data on form behind it
Message
 
 
À
30/04/2004 10:58:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00899719
Message ID:
00899932
Vues:
28
Hi Tracy,

I've seen this effect on some of my forms too. I think, it happens when the long process is running with DoEvents, but I am not positive. I also saw, that wait window doesn't want to disappear despite wait clear... I don't think, I was able to completely get rid of the problem...

>We are seeing this effect in Windows 2000 and Windows XP so far. Haven't tested it on previous versions yet. Only on desktops, no WTS yet of this version. We don't use the API at all for this form. In fact, I have stepped through the properties and methods and cannot see anything unusual yet...
>
>
>>Yeah, the "dragging" is what you see with lockscreen=.f.
>>Is your form affected by any WinAPI functions altering its appearance or other properties?
>>What version of Windows? Is it WTS?
>>
>>>In testing when I set lockscreen to .T. on the background form to see if it caused it to occur on other forms, what happens is the messagebox form image is drawn all over the form in the background when you drag the messagebox form around but it doesn't erase the form in the background. On this form, it is the erasing it (it becomes blank everywhere the messagebox is dragged to but the messagebox image does not get left there) in the background that is strange. I don't get the messagebox image dragged all over it at all...
>>>
>>>>It means that Form.Lockscreen = .T. while the msgbox is displaying, which prevents the Form from repainting. Make sure that Form.Lockscreen is .F. before displaying the messagebox().
>>>>
>>>>
>>>>>In only some cases if I create a popup messagebox() form and when it is displayed, move it around the screen, it will effectively 'erase' the form behind it. It does not happen in all cases and I can see no 'activate screen' or other command that may have an effect on this. What else can cause this?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform