Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement