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
NOTE: This article does not apply to Visual FoxPro 3.0 for Windows.
Steps to Reproduce Problem
- 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).
- 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
- 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
- Close the code snippet and choose Save As from the File menu. Name the
screen CCNSELE.
- 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.
|