BUG: FxAlert() Function Does Not Appear Centered

Last reviewed: February 20, 1997
Article ID: Q163931
The information in this article applies to:
  • Microsoft Visual FoxPro for Macintosh, version 3.0b

SYMPTOMS

The default position of the FxAlert() function does not appeared centered horizontally when invoked in Visual FoxPro 3.0b for the Macintosh. When compared with FoxPro 2.6a for the Macintosh, the FxAlert() function appears much closer to the left-hand corner of the Visual FoxPro desktop after assigning the nHorizontal and nVertical parameters the negative one (-1) value.

In FoxPro for the Macintosh 2.6a, the dialog appears centered horizontally.

RESOLUTION

Use the Visual FoxPro MESSAGEBOX() function.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The FxAlert() function topic in the FoxTools Help file, located in the Microsoft Visual FoxPro\Tools folder, states:

   Use a value of -1 for either nHorizontal or nVertical to accept
   the default position.

The FoxTools Help file contains the complete syntax for the FxAlert() function.

Steps to Reproduce Behavior

  1. In the Visual FoxPro for the Macintosh Command window, issue the following commands:

          SET LIBRARY TO HOME()+"FoxTools.cfm"
          =FxAlert(1,257,-1,-1,"Hello")
    

  2. Note that the Alert box is not centered horizontally.

  3. If you have FoxPro 2.6a for the Macintosh, the FxAlert() syntax remains the same. However, change the line:

          SET LIBRARY TO HOME()+"FoxTools.cfm"
    

          -to-
    

          SET LIBRARY TO GETFILE()
    

    Navigate to the System\Extensions folder and open the FoxTools.mlb file.

  4. Note that in FoxPro for the Macintosh 2.6a, the Alert dialog is centered horizontally.


KBCategory: kbprg kbbuglist
KBSubcategory: FxtoolGeneral BUGLIST3.00b VFoxMac
Additional reference words: 3.00b



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