PRB: PageFrame SubClass Invisible at Runtime

Last reviewed: August 7, 1997
Article ID: Q172447
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

A SubClass based on a PageFrame Class, whose PageCount property is set to 0, does not display any pages at design time and is invisible at run time.

RESOLUTION

A workaround is to set the PageCount property of the PageFrame class to a value greater than 0.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a class, named "pgf," as follows:

          CREATE CLASS pgf OF MyClass AS PageFrame
    

  2. When the Class Designer comes up, reset the PageCount to default by right-clicking the PageCount property of the PageFrame and then selecting the Reset To Default option from the Shortcut menu. This should set the PageCount property to 0.

  3. Save the class and close Class Designer.

  4. Create another class "pgfreal" based on "pgf" as follows:

          CREATE CLASS pgfreal OF MyClass AS pgf FROM MyClass
    

  5. When the Class Designer comes up, set the PageCount to 3.

  6. Save the Class and close the Class Designer.

  7. Create a form as follows:

          CREATE FORM MyForm
    

  8. Drop each of the classes, pgf and pgfreal, onto the form and observe that the PageFrames are displayed without any pages.

9 Run the Form and now observe that neither PageFrame appears.

Keywords          : FxprgClassoop vfoxwin
Version           : WINDOWS:5.0,5.0a
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


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.

Last reviewed: August 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.