PRB: DEFINE WINDOW Command Loses Single Border in VFP 5.0

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

SYMPTOMS

Using the Font clause on the DEFINE WINDOW command under Visual FoxPro 5.0 and 5.0a causes the resulting window to appear with a double border. In FoxPro 2.6a for Windows and Visual FoxPro 3.0b, the window has a single pixel border.

RESOLUTION

To preserve the single border window, do not use the FONT clause with the DEFINE WINDOW command in Visual FoxPro 5.0 or 5.0a.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Identical DEFINE WINDOW commands create windows that differ in appearance when run under Visual FoxPro 5.0 and 5.0a compared with FoxPro for Windows 2.6a and Visual FoxPro 3.0b. Along with the difference in border styles noted above, a close box appears in the upper right-hand corner when the code runs under Visual FoxPro 3.0b and FoxPro 2.6a for Windows. In Visual FoxPro 5.0 and 5.0a, however, the close box is absent.

Steps to Reproduce Behavior

  1. In FoxPro 2.6a or Visual FoxPro 3.0b, type the following lines of code in the Command Window:

    DEFINE WINDOW X from 1,1 to 20, 20 Title "X" font "MS San Serif", 10 ACTIVATE WINDOW X

  2. Note that the resulting window has a close box in the upper right-hand corner and the border is a single pixel in width.

  3. Type the same commands in the Command window of Visual FoxPro 5.0 or 5.0a. The window now has what appears to be a double border and the close box is gone.

  4. Type "CLEAR ALL" (without quotation marks) in the Command window, and change the code to read:

    DEFINE WINDOW X from 1,1 to 20, 20 Title "X" ACTIVATE WINDOW X

  5. The window now has a single border but the close box is still absent.


Keywords : FxprgUdwindow VFoxWin kbprb
Version : 5.0 5.0a
Platform : WINDOWS
Issue type : kbprb


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