DOCUMENT:Q139145 11-FEB-2000 [foxpro] TITLE :FIX: Text Shifts to the Left and Down Slightly in a Grid PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0,3.0b,5.0 OPER/SYS: KEYWORDS:kbvfp kbvfp300bBUG kbvfp500aFIX kbvfp500bugkbbuglist kbfixlist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When a text box in a grid column has its Sparse property set to false, the text shifts when the cell is activated. This occurs with numeric data that has an input mask. WORKAROUND ========== Set the Margin property for the text box to 2 rather than the default of 0. STATUS ====== Microsoft 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.0a. MORE INFORMATION ================ Steps to Reproduce Problem -------------------------- 1. Create a new form. 2. Use and modify the Orditems table so that the Order_id field is numeric. 3. Add the Orditems table to the Data Environment of your form. 4. Drag the table from the Data Environment to the form to create a grid. 5. Set the ColumnCount property of the grid to 5. 6. Set the Input Mask of the column 2 text box to 99,999. 7. Set the column 2 Sparse property to false (.F.). 8. Run the form. Observe the positioning of the data in the second column. It aligns to the right and top of the cell. Clicking a cell results in the data moving to the left and down slightly. If you set the margin property of the text box for this column to 2, the data appears correctly. Additional query words: misalign ====================================================================== Keywords : kbvfp kbvfp300bBUG kbvfp500aFIX kbvfp500bug kbbuglist kbfixlist Technology : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP300b kbVFP500 Version : WINDOWS:3.0,3.0b,5.0 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.