Microsoft KB Archive/66868

PRPM9012015: List Box Scroll and Delete Item Problem PSS ID Number: Q66868 Article last modified on 07-01-1991 PSS database name: P_PresMan

1.21

OS/2

Summary:

PROBLEM ID: PM9012015

SYMPTOMS A list box is created that has room to display N items and it currently has N+1 items in it. If the list box is then scrolled to the bottom of the items and one of the items that is showing is deleted, the top index stays the same. This action leaves the first item outside the list box, and the scroll bar also becomes disabled. Consequently, it is not possible to pull the top item back into view using the scroll bar or the mouse.

RESOLUTION/STATUS It is possible to workaround this problem in a variety of ways. For example, check the status of the scroll bar before and after the item has been deleted. When the scroll bar switches to disabled, set the top item index to be 0 (zero). Please note that even if this workaround is not implemented, the user can still access the top item by scrolling the focus with the arrow keys.

Microsoft has confirmed this to be a problem in PM version 1.21. This problem was corrected in PM version 1.3.

Copyright Microsoft Corporation 1991.