Microsoft KB Archive/110538

{| = BUG: Windows Program on FoxPro/Mac Does Not Display Bitmaps =
 * width="100%"|

ID: Q110538

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS
When you are using FoxPro for Macintosh to run a program written in FoxPro for Windows, bitmaps do not appear on screen.

CAUSE
The background color of the defined window is black.

RESOLUTION
To see the bitmap displayed on the screen, change the window background color to a color other than black.

STATUS
Microsoft has confirmed this to be a problem in FoxPro 2.5b for Macintosh. This problem has been corrected in FoxPro for Macintosh version 2.6a.

Steps to Reproduce Behavior
1. In FoxPro for Windows, do the following:

a. Issue the following commands in the Command window to create a sample database:

CREATE TABLE test (OBJECT G)        APPEND BLANK * The following bitmap was copied from * the FOXPROW\GOODIES\BITMAPS\MAPS directory APPEND GENERAL OBJECT FROM ctrspain.bmp

b. Create a program, called TEST.PRG, with the following code:

IF USED('test') SELECT test ELSE USE TEST ENDIF DEFINE WINDOW test AT 0, 0 SIZE 10, 15 ; COLOR RGB(,,,0,0,0) ACTIVATE WINDOW test @ 1,1 SAY test.object SIZE 5,10 CENTER READ CYCLE RELEASE WINDOW test

c. Execute the program by choosing Do from the Program menu and then double-clicking TEST.PRG. A black window with a small flag in the center should appear in the top-left corner of the screen. 2. In FoxPro for Macintosh, execute the program by choosing Do from the Program menu and then double-clicking TEST.PRG. Note that the window is  completely black with no flag in the center. 3. To see the bitmap displayed correctly, edit the program and change the DEFINE WINDOW command to the following:

DEFINE WINDOW test AT 0, 0 SIZE 10, 15 ; COLOR RGB(,,,128,128,128) Additional reference words: FoxMac 2.50b buglist2.50b bmp picture KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: \\* KbSweepMac3.00
 * }