BUG: Popup & Label Move Out of Position on FoxFont Screens
PSS ID Number: Q121731
Article last modified on 11-08-1994
PSS database name: FOXPRO

2.5x 2.60 2.60a
WINDOWS

---------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
---------------------------------------------------------------------

SYMPTOMS
========
If you create a screen using FoxFont as the screen font and place a popup
and its associated label on a single line that is also defined with the
FoxFont font, the popup and its associated label move out of alignment.
This behavior does not appear to occur with any other objects.

RESOLUTION
==========
If you must use FoxFont as the screen font, position the popup higher than
the rest of the line. In some cases, moving the text label itself higher or
lower will work.
Alternatively, make the screen font "MS Sans Serif," a standard Windows
font.

STATUS
======
Microsoft has confirmed this to be a problem in FoxPro for Windows. We
are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.

MORE INFORMATION
================

Steps to Reproduce Problem
--------------------------

1. From the FoxPro menu, choose File, New and select the Screen radio
   button. Press the "New" button.
2. Choose Screen, Ruler/Grid and set the ruler to pixels. Grid size,
   in pixels, is 12 horizontal and 12 vertical.
3. In the Screen, Layout menu:
    - Choose the Font button. Select FoxFont and type 12 for the point
      size. Click OK.
    - For the screen size, type 467 for the width and 134 for the height.
   All values are in pixels.
4. Click the A text button and on the left side of the screen type the
   word Hello. Using the pointer tool, select that object and then choose
   Object, Font from the FoxPro menu. Choose FoxFont and type 12 in the
   size box. Click OK.
5. Click on the AB field tool. Drag out a box immediately to the right of
   the Hello text label. In the Field dialog box (to the right of the
   Input button), type the name "m.junk" (without the quotation marks).
   Click OK.
6. Place a text label that says "Popup" to the right of the GET field.
   Repeat step 4.
7. Click the Popup tool button. Drop a popup to the right of the second
   text label. In the box labeled "Popup prompts," type One. On the next
   line, type Two. In the box to the right of the Variable button, type
   Popval. Click OK.

At this point, all four objects should be on the same line or close to the
same line horizontally. From the FoxPro menu, choose Program, Generate.
Click the Yes button when it asks you if you want to save your changes. In
the Save As dialog box, type Test without the file extension. When done,
click the Save button. FoxPro will generate the code.
In the command window, type "DO TEST.SPR" and press ENTER. You should see
objects one through three on a single line. The last object, the popup,
will be positioned partway down on another line.

Additional reference words: FoxWin FoxFont Popup Position Screen
KBCategory: kbprg kbbuglist
KBSubcategory:

=============================================================================
Copyright Microsoft Corporation 1994.