BUG: Disabled Pages in Container Class Appear Enabled

Last reviewed: April 24, 1997
Article ID: Q156922
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

When disabling a page in a PageFrame object within a container class, the disabled page from the PageFrame appears enabled when subclassing the container class.

WORKAROUND

For the disabled page to show up as disabled at run time, put the following code in the Init event of the disabled page:

   THIS.Enabled = .F.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

When you are creating a container class that has a PageFrame object in it and you disable a page in the PageFrame, the page that was disabled in the container class shows up as if it were enabled at design time if you try to subclass the container class.

However, if you edit the container class and then click on the disabled page, it disables itself properly but it always appears at first to be enabled.

At run time, the disabled page looks like it is enabled, but you cannot select the disabled page.

Steps to Reproduce Problem

  1. Use the Class Designer to create a container class.

  2. Place a PageFrame in the container class and set the PageCount property to 3.

  3. Set the Enabled property of the third page to False (.F.).

  4. Create a form.

  5. Drop the Container class that you just created in the Class Designer onto the form.

    The disabled page now appears enabled.


Keywords : buglist5.00 FxprgClassoop FxtoolFormdes kbprg kbtool kbui VFoxWin vfpbug5.0a kbbuglist kbtool kbui
Version : 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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: April 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.