Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange visual effect
Message
 
À
20/04/2000 04:24:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00361684
Message ID:
00361687
Vues:
11
Hi Denis,

>Anybody saw strange visual effect?
>On page of pageframe placed shape (with green backcolor) and subclassed textboxes.
>Subclassed textbox objects filling with shape backcolor when page on the pageframe activate.

That's a bug in VFP 6. Whenever you have a shape object somewhere on the form, instantiating this shape switches the backcolor internally used by VFP to paint transparent parts. It looks like VFP doesn't switch back to the original GDI object after painting a shape. So far I've only seen this with editboxes and listboxes, @ SAY, all fillstyles and linestyles that use a dotted pattern, but I think it could happen with a textbox, too. Issuing CLEAR or calling the Cls() method of the form sometimes help, but it typically comes back after some time.

Instead of using the BackColor property, try using the FillColor property and set the FillStyle to solid.


Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform