ID: Q127842
2.60a 3.00 WINDOWS kbgraphic kbprb
The information in this article applies to:
If you issue the @...SAY <.BMP file> BITMAP command, and then make changes to the .BMP file, when you reissue the @...SAY command, the changes to the .BMP file are not displayed.
The .BMP image is cached after the first @...SAY, so when the command is repeated, FoxPro does not read the modified file from disk.
If you are using FoxPro for Windows version 2.x, issue the following command before subsequent @...SAY commands:
=SYS(1015)
This forces FoxPro to read the .BMP file from disk.
WARNING: This function is undocumented and therefore may be changed or omitted without notice from future releases of FoxPro. The reliability of this function is not guaranteed.
If you are using Visual FoxPro for Windows version 3.0, you can create a form, place an OLE container on the form, and use the Show method to refresh the image.
If you are using Visual FoxPro, you can create a form and place an OLE bound control on the form to display the .BMP file. Then, you can use the SHOW method of the form to refresh the .BMP.
NOTE: The .BMP must to be linked instead of embedded. An embedded .BMP will not work in this case.
This behavior is by design.
1. In the Command window issue this command:
@1,1 SAY "c:\windows\castle.bmp"
2. Launch Paintbrush and open CASTLE.BMP from the Windows directory.
3. Make changes to the picture and save the file.
4. Repeat step 1. Note that the changes to the file do not appear.
5. In the Command window issue the command:
=SYS(1015)
6. Repeat step 1. Note that now the changed bitmap is displayed.
Additional reference words: VFoxWin 3.00 FoxWin 2.60a bitmap refresh KBCategory: kbgraphic kbprb KBSubcategory: FxotherGraphic
Keywords : FxotherGraphic
Version : 2.60a 3.00
Platform : WINDOWS
Last Reviewed: May 1, 1996