FIX: Error Changing Grid s DynamicBackColor & DynamicForeColorID: Q132534 3.00 3.00b WINDOWS kbtool kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSYou get the following error when changing the DynamicBackColor and DynamicForeColor in a grid that has a class object added to a column and that class object is the active control with the Sparse Property set to false (.F.):
RESOLUTIONChange either the DynamicBackColor or the DynamicForeColor but not both. Or use the default controls that the Form Builder offers.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem1. Create a new class named CenterChk based on Container, and store it in 2. In the Class Designer, set the following properties for the container:
3. From the Form Controls toolbar, select the check box Control, and place
4. Set the following Properties for the check box:
5. With the check box selected, click Center Horizontally and Center
6. Open the Tastrade.dbc in the VFP\Samples\Mainsamp\Data directory.
7. Create a new form called TestGrid, and add a new property to the form 8. Using the right mouse button, click the form to bring up the Data
9. From the Form Controls toolbar, select the Grid control, and add a grid
10. Using the right mouse button, click the grid, and choose Builder. From
11. Close the Builder by clicking OK.
12. Set the following Property for the grid:
13. Using the right mouse button, click the grid, then click Edit.
14. From the Form Controls toolbar, click the View Classes button and 15. Set the following Properties for Column 3 in the grid:
16. Set the following Property for Column 3 CenterChk1 Check1 in the grid:
17. Add the following code to the Init event of the grid:
18. Add the following code to the AfterRowColChange event of the grid:
19. Save and run the form.
For more information on creating forms, please see Chapter 9 in the Developer's Guide. For more information on creating classes, please see Chapt1er 10 in the Developer's Guide. And for more information on using controls on a form, please see Chapter 11 in the Developer's Guide. KBCategory: kbtool kbbuglist kbfixlist KBSubcategory: FxtoolSbuilder fixlist5.00 VFoxWin buglist3.00 buglist3.00b Additional reference words: 3.00 3.00b
|
Last Reviewed: October 23, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |