Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Colorsource error when recompiling with VFP 8
Message
De
31/12/2003 11:55:34
 
 
À
24/12/2003 13:24:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00861971
Message ID:
00863174
Vues:
34
The error was found to be due to the Backcolor property that exists for the Commandbutton class in VFP 8 but is not a property in VFP 6. That little difference was enough to throw off the default setting of "4-Windows Control Panel" for command buttons and sets it to "0" instead when recompiling the application.

Adding Thisform.setAll("ColorSource", 4, "commandbutton") to the Form's Init method fixes the problem.

-Mark

>I am seeing a problem on some, but not all, command buttons on forms that do not retain the correct Colorsource property setting of "4" (Windows Control Panel-3D Colors-Default) when recompiled using VFP 8 SP1. Instead, some of the buttons have their colorsource set to "0", the Object[ASCII 146] Color Properties setting.
>
>This legacy application, originating from FPDOS and converted through FPWIN and VFP 3-6, never did make use of intermediate level classes, instead all forms and controls inherit directly from VFP base classes (ugh!). It is currently compiled in VFP 6 and does not display any colorsource errors during design or runtime. Has anyone seen this problem before or know of it specifically occurring when using VFP 8 SP1 to recompile an earlier VFP application. I was thinking of creating a routine to set or verify that the colorsource property of all command buttons on forms in a project are set to ".colorosource=4" with a Project hook. Any other ideas or solutions appreciated. Thanks.
Mark Rietman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform