BUG: Popup Not Cleared in FoxPro for Windows (113277)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0
  • Microsoft FoxPro for Windows 2.5
  • Microsoft FoxPro for Windows 2.5a
  • Microsoft FoxPro for Windows 2.5b
  • Microsoft FoxPro for Windows 2.6

This article was previously published under Q113277

SUMMARY

In FoxPro 2.6 for MS-DOS and in dBASE, the CLEAR command will clear (hide) a popup. However, in FoxPro for Windows, the CLEAR command does not clear the popup.

RESOLUTION

See "Workaround" in the "More Information" section below.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. 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. Start FoxPro for Windows.
  2. Type the following in the Command window and press ENTER:
          MODIFY COMMAND test
  3. Enter the following code in the TEST.PRG window:
          SET COMPATIBLE TO DB4
          DEFINE POPUP x FROM 10,10
          DEFINE BAR 1 OF x PROMPT "Hello"
          DEFINE BAR 2 OF x PROMPT "Bye"
          ON SELECTION POPUP x DO myx
          ACTIVATE POPUP x
          RELEASE POPUP x
    
          PROCEDURE myx
          CLEAR
          *HIDE POPUP x   && remove asterisk from this line to correct the
          *problem
          WAIT WINDOW "Cleared"
  4. Press CTRL+W to save TEST.PRG.
  5. In the Command window type:
          DO TEST.PRG
Note that the POPUP is not cleared when you press the ENTER key or the SPACEBAR.

WORKAROUND

Remove the asterisk from the line that reads "*HIDE POPUP X". The line should now read as follows:

HIDE POPUP x


Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug KB113277 kbAudDeveloper