Microsoft KB Archive/156922

= BUG: Disabled Pages in Container Class Appear Enabled =

Article ID: 156922

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156922



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.



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: kbbug kbprogramming kbui KB156922

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.