Microsoft KB Archive/193253

= BUG: HalfHeightCaption Form Causes Small Empty Control Menu =

Article ID: 193253

Article Last Modified on 12/11/1999

-

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 Q193253



SYMPTOMS
If you run a top-level form with the HalfHeightCaption property set to true (.T.) and you minimize the form, right-clicking the form icon on the system task bar causes a small empty control menu to display.



RESOLUTION
Here are the two workarounds for this problem:

Method 1
Create the form using the following code example: PUBLIC oform && If run from a program file. oform = CREATEOBJECT('form1') oform.Show DEFINE CLASS form1 AS form ShowWindow = 2 AutoCenter = .T.     HalfHeightCaption = .T.      Name = "Form1" Caption = "Form1" ENDDEFINE

Method 2
If the form is created with the Form Designer, place the following code in the Deactivate and Paint events of the form.

In the Deactivate event: DoDefault IF Thisform.WindowState = 1 Thisform.HalfHeightCaption = .F.     Thisform.Icon = Thisform.Icon ENDIF In the Paint event: IF Thisform.WindowState = 1 Thisform.HalfHeightCaption = .F.  ELSE Thisform.HalfHeightCaption = .T.  ENDIF



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
This behavior does not occur if the form is created using code instead of the Form Designer.

Steps to Reproduce Behavior
 Create a form named Myform.  Set the two following properties of the form: HalfHeightCaption = .T.     ShowWindow = 2 - As Top-Level Form  Save and run Myform. Click the minimize button to minimize the form. In the System Taskbar, right-click the icon to display the control menu. A small empty control menu displays.</ol>

Additional query words: kbVFp600bug kbVFp500abug kbXBase kbContainer kbCtrl kbvfp500 kbvfp500a kbvfp600

Keywords: kbbug kbnofix KB193253

-

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

© Microsoft Corporation. All rights reserved.