PRB: SET SYSMENU OFF Relocates Row 0 & Causes Screen "Jumping"

Last reviewed: June 27, 1995
Article ID: Q102925
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a

SYMPTOMS

The screen "jumps" when the SET SYSMENU OFF command is issued.

CAUSE

Row 0 is below the menu bar in FoxPro for Windows instead of "behind" the menu bar as it is in FoxPro for MS-DOS. This difference occurs because there is no client area for FoxPro for Windows to write on behind the menu bar.

Therefore, the screen "jumps" when SET SYSMENU OFF is issued because row 0 relocates to the region where the system menu used to reside.

RESOLUTION

To avoid the screen jumping effect, use SET SYSMENU TO instead of SET SYSMENU OFF.

MORE INFORMATION

Steps to Reproduce Behavior

   @ 0,0 SAY "Hello"

   FOR cnt = 1 to 10
      SET SYSMENU OFF
      SET SYSMENU AUTO
   ENDFOR


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.