FIX: Screen Prompts for Location of Push Button Picture

ID: Q114964

2.50b MACINTOSH kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS

Each time it is run, a screen created by the Screen Builder prompts for the location of a picture, bitmap, or icon file associated with a push button.

CAUSE

The Screen Builder stores the relative path to the picture file. If the default directory is two levels deep (a subfolder in a folder), the relative path doesn't point to the picture file.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5b for Macintosh. This problem was corrected in FoxPro 2.5c for Macintosh.

MORE INFORMATION

A push button can be associated with a picture (.PCT), bitmap (.BMP), or icon (.ICO or .ICN) file.

In the following example, FoxPro 2.5b generates the following relative path:

   ..\foxpro\goodies\misc\pictures\arrows\arw01dn.pct

FoxPro 2.5c, which corrects this problem, generates the following complete relative path:

   ..\..\foxpro\goodies\misc\pictures\arrows\arw01dn.pct

NOTE: FoxPro 2.5c for Macintosh uses the same Screen Builder (GENSCRN.PRG) as FoxPro 2.6 for Windows and MS-DOS.

Steps to Reproduce Problem

These steps assume the following:

  • FoxPro is installed in a folder (directory) named "FoxPro".
  • The volume (drive) name is "Macintosh HD".

    1. Using Finder, create a folder called TEST. Then, create a

        subfolder in TEST called SUBTEST.
    

    2. Start FoxPro.

    3. Type the following in the Command window:

           SET DEFAULT TO 'Macintosh HD:\TEST\SUBTEST'
           CREATE SCREEN test
    

    4. Select the Push Button tool from the toolbox, then click in the

        Screen Design window to create a push button.
    

    5. In the Push Button dialog box, under Type, select Picture. Then

        choose the Each Picture File button.
    

    6. Select ARW01DN.PCT from the FoxPro\Goodies\Misc\Pictures\ARROWS

        subfolder. Choose Open.
    

    7. In the variable text box, type "x" (without the quotation marks).

        Choose OK.
    

    8. From the Program menu, choose Generate.

    9. When prompted to save changes to the screen, choose Yes.

10. When prompted to save environment information, choose No.

11. Choose the Generate button.

12. Close the Screen Design window.

13. In the Command window, type "DO test.spr" (without the quotation

    marks) to run the screen.

Note that the Open File dialog box displays, asking the following:

   Where is arw01dn?

Additional reference words: FoxMac 2.50b buglist2.50b fixlist2.50c KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: Solution Type : kbfix


Last Reviewed: October 20, 1997
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.