BUG: HalfHeight Forms Closable Even If Closable = False (137411)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q137411 SYMPTOMS
If you create a form with a halfheight title bar and set the Closable
property of the form to false (.F.), you can still close the form.
WORKAROUND
To avoid the problem, use the QueryUnload event. Put a NODEFAULT in its
code to make it impossible to close the form:
x = CREATEOBJECT( 'myform' )
x.Show
READ EVENTS
DEFINE CLASS myform AS Form
HalfHeightCaption = .t.
Add Object cmdclose AS CommandButton
cmdclose.Caption = "Close"
PROCEDURE cmdclose.click
thisform.release
ENDPROC
PROCEDURE QueryUnload
NODEFAULT
ENDPROC
PROCEDURE Destroy
CLEAR EVENTS
ENDPROC
ENDDEFINE
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.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug kbcode kbProgramming KB137411 |
---|
|