DOCUMENT:Q121240  10-NOV-1994  [FOXPRO]
TITLE   :PRB: SET MARK OF BAR Character Disappears When Scrolling
PRODUCT :Microsoft FoxPro
PROD/VER:2.5x 2.60 2.60a | 2.5x 2.60
OPER/SYS:WINDOWS         | MACINTOSH
KEYWORDS:kbother

------------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
 - Microsoft FoxPro for Macintosh, versions 2.5x, 2.6a
------------------------------------------------------------------------

SYMPTOMS
========

Under certain circumstances, when a mark is set for a given popup bar,
scrolling within the popup will cause any marked bars to lose their mark
character.

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. In the Screen Builder, build a small screen. From the Screen menu,
   choose Layout, and define the width as 305 and the height as 305. In the
   Name box, type "CCN_SELE" (without the quotation marks).

2. Under Options, choose the Code button, and then choose the Screen Setup
   Code button, and enter the following code:

      #NOREAD  && READ MODAL will be issued elsewhere

      CLOSE DATABASES
      SELECT 1
      USE SYS(2004)+"TUTORIAL\Customer" IN 1
      GO TOP

3. Choose the Cleanup And Procedures button and enter the following code:

      DEFINE POPUP ccnsele MARGIN SCROLL
      CUR_BAR = 1
      FOR j = 1 TO 20
        DEFINE BAR j OF ccnsele PROMPT Company
        SKIP 1
      ENDFOR

      ON KEY LABEL F12 ON KEY          && In case of trouble hit F12
      ON KEY LABEL spacebar SET MARK OF BAR cur_bar OF "ccnsele" TO ;
      !MRKBAR("ccnsele",cur_bar)

      @ 0,0 GET cur_bar PICTURE "@&T" POPUP  ccnsele SIZE 20,50 DEFAULT " "
      READ MODAL

      * Clean up environment
      ON KEY
      CLEAR WINDOW ccn_sele
      SELECT customer
      USE

4. Close the code snippet and choose Save As from the File menu. Name the
   screen CCNSELE.

5. From the Program menu, choose Generate, and then type "DO ccnsele.spr"
   in the Command window.

You should be able to mark the items that are displayed in the list by
pressing the spacebar. However, scrolling down the list should eventually
clear the check marks that were established for the bars.

Additional reference words: FoxMac FoxWin 2.50 2.50a 2.50b 2.50c 2.60 2.60a
Set
mark of
bar popup checkmark option
KBCategory: kbother
KBSubcategory:

=============================================================================

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.

Copyright Microsoft Corporation 1994.