PRB: BackColor for Objects in a Grid Appears to Be IncorrectID: Q135915 The information in this article applies to:
SYMPTOMSUnder certain conditions, you may find that the BackColor of an object contained within a grid appears to be incorrect.
CAUSEthis occurs if the BackStyle property of the object is set to Transparent, and the BackColor of the grid differs from that of the form on which it resides. An object contained within a grid inherits the BackColor of the form when the object's BackStyle property is set to Transparent.
RESOLUTIONSet the BackColor of the Object to the same value used by the grid.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. Open or switch to Microsoft Visual FoxPro, and open any table into the 2. Type CREATE FORM TEST in the Command window, and press ENTER.
3. Using the Property Window of the form, set the BackColor of the form to 4. Place a grid on the form. Using the Property Window, set the ColumnCount
5. Using the Property Window, set the BackStyle property of Text1 in
6. Using the Property Window, set the Sparse property of Column 1 to false
7. Save and run the Form. Note that Column 1 of the grid is Red because it
Additional reference words: 3.00 VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: August 30, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |