Microsoft KB Archive/190870

= PRB: TITLEBAR = 0 Does Not Carry Over from Base Class =

Article ID: 190870

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q190870



SYMPTOMS
When you subclass a form based on the Top-Level form class definition and the Top-Level form class TitleBar property is set to 0 (zero), the TitleBar property does not get implemented in the subclassed form.



RESOLUTION
To workaround this behavior, place "Desktop = .T." in the class definition code as shown in the MORE INFORMATION section.



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.



Steps to Reproduce Behavior
 Create a .prg file.  Paste the following program into the .PRG file: PUBLIC x     x=CREATEOBJECT("frmform") x.SHOW

DEFINE CLASS frmform AS FORM ShowWindow = 2 TitleBar = 0 *Desktop = .T. && Uncomment this property to hide the TitleBar. ADD OBJECT command1 AS CommandButton

PROCEDURE command1.Click Thisform.Release ENDPROC

ENDDEFINE  Save and run the .RRG

NOTE: The form appears with a TitleBar even though the TitleBar property is set to 0 (off) in the class definition.

Additional query words: kbVFp600 kbOOP

Keywords: kbprb kbpending kbcode KB190870

-

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

© Microsoft Corporation. All rights reserved.