Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BackColor
Message
De
08/11/2009 22:52:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
BackColor
Versions des environnements
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01433792
Message ID:
01433792
Vues:
195
Hi Folks,

I sub-classed a grid that I put on a form class that I also sub-classed. I then added a form to a project based on my form glass containing the sub-classed grid . In the project form, I set some custom back colors for the grid, the grid columns and the text-boxes on the grid.

When I run the form, the background color is unexpectedly the default white. Using the debugger, I can see that when I use the parameterized view (with the NODATA clause) in the forms LOAD method, all of the various grid colors look the way I want them to at this point. (This view is the recordsource for the grid.) However, as soon as I REQUERY() the view in the project form's INIT() method, all of the columns in the grid (or perhaps more correctly what I'm guessing is the textbox backcolor) appear with the white background rather than the custom colors I've set using the backcolor property.

If I look to the right or below all of the cells where data is being displayed, I see the 'correct' colors. In other words if I scroll to the right in the grid past the last column displaying data, I see the custom backcolors that I set and the same is true if I scroll down past the last row of data in the grid.

It may (or may not) just be a coincidence, but when I've implemented similar grids in the past without sub-classing, I got the behavior that I expected for the backcolor rather than bumping into this unexpected behavior.

Anybody know what I'm doing wrong?

Thanks,
Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform