Microsoft KB Archive/163931

= BUG: FxAlert Function Does Not Appear Centered =

Article ID: 163931

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q163931



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.



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
  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")  Note that the Alert box is not centered horizontally.  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.  Note that in FoxPro for the Macintosh 2.6a, the Alert dialog is centered horizontally.

Keywords: kbbug KB163931

-

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

© Microsoft Corporation. All rights reserved.