[comp.sys.mac.programmer] Bug in List Manager

oster@well.sf.ca.us (David Phillip Oster) (06/12/91)

This is a bug I have not seen discussed here before. Under some circumstances
the scroll bar in the list manager is left disabled when it should not be.

To replicate:

start with an empty listmanager. put another window above it, and call
LActivate(FALSE, lh), so it is not active nor in the active window.
LAddRow()s, one at a time, until there are more than enough to wake up the
scroll bar. Bring it to the top, so it executes an LActivate(TRUE, lh)
as part of its window's activate handler. Note that the scrollbar is
still disabled.

Workaround: I check for this case in my activate handler, and if necessary,
explicitly HiliteControl( (**lh).vScroll, 0);

environment: the bug definately appears on a IIcx on System 6.0.7. I haven't
tried other configurations.
-- 
-- David Phillip Oster - At least the government doesn't make death worse.
-- oster@well.sf.ca.us = {backbone}!well!oster