DEFINE BAR ... SKIP Behavior Differs Between Platforms

ID: Q115106

The information in this article applies to:

SUMMARY

The SKIP clause, when used in conjunction with the DEFINE POPUP and DEFINE BAR commands to create menu options, will work differently in FoxPro for Windows and Macintosh than it does in FoxPro for MS-DOS.

MORE INFORMATION

Steps to Reproduce Behavior

1. Create a program with the following sample code:

      ***** Start of code *****
      IF _WINDOWS OR _MAC
         SET STATUS BAR ON     && FoxPro for Win or Mac to see messages
      ELSE
          SET STATUS ON        && Turn on FoxPro for MS-DOS status bar
      ENDIF
      DEFINE POPUP test FROM 1,1 TO 10,30
      DEFINE BAR 1 OF test PROMPT "Main Menu" SKIP MESSAGE "Main Menu"
      DEFINE BAR 2 OF test PROMPT "Bar 1" SKIP MESSAGE "Bar 1"
      DEFINE BAR 3 OF test PROMPT "Bar 2" MESSAGE "Bar 2"
      ACTIVATE POPUP test
      ****** End of code ******

2. Run this program on each platform. Use the arrow keys to attempt to
   move the highlight bar through the menu bars.

In FoxPro for MS-DOS, the highlight bar will not move onto a bar that has the SKIP clause on it. The MESSAGE will not be displayed either.

In FoxPro for Windows and FoxPro for Macintosh, the highlight bar will move through all bars in the popup and the message will be displayed on the status bar, but no action can be taken on the disabled bars.

REFERENCES

"Language Reference," version 2.5 (MS-DOS and Windows), pages L3-393 to L3-400, L3-416 to L3-426

"Language Reference," version 2.5b (Macintosh), pages 336-342, 352-361

"Commands & Functions," version 2.0 (MS-DOS), pages C3-281 to C3-287, C2-300 to C2-308

Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50 2.60 2.50c KBCategory: kbprg KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995