DOCUMENT:Q185187 11-DEC-1999 [foxpro] TITLE :BUG: Pageframe Subclass Invisible Until Clicked PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:5.0,5.0a,6.0 OPER/SYS: KEYWORDS:kbnokeyword ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a, 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== A PageFrame subclass is not visible, at design and run-time, even if its PageCount property is set to a value higher than 0. CAUSE ===== The problem described in this article occurs if the PageCount property of the Parent class is set to 0. RESOLUTION ========== Do not set the PageCount property of the Parent Class to 0. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a class myPage1 using the following line of code: CREATE CLASS myPage1 OF myclib AS PAGEFRAME 2. When the Class Designer opens, reset the PageCount to the default value. You can do this by right-clicking on the PageCount property and selecting the "Reset To Default" option from the shortcut menu. 3. Save the class and close the Class Designer. 4. Create a class myPage2 with the code below: CREATE CLASS myPage2 OF myclib AS myPage1 FROM myclib 5. When the Class Designer appears, set the Pagecount to three. 6. Save the class and close the Class Designer. 7. Create a form and place each of the classes, myPage1 and myPage2, onto the form. NOTE: Both PageFrames are not visible. 8. Run the Form. NOTE: Both the PageFrames are still not visible. 9. Click in the area on the form where the PageFrame SubClass should be and it becomes visible. The PageFrame SubClass, myPage2, should be visible at design and run-time. Additional query words: vfoxwin kbvfp500 kbvfp500a kbvfp600 ====================================================================== Keywords : kbnokeyword Technology : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP600 kbVFP500a Version : WINDOWS:5.0,5.0a,6.0 Issue type : kbbug Solution Type : kbnofix ============================================================================= 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 1999.