Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!samsung!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!decuac!shlump.nac.dec.com!mountn.dec.com!minow From: minow@mountn.dec.com (Martin Minow) Newsgroups: comp.sys.mac.programmer Subject: Re: Horizontal scrolling in List Manager Message-ID: <1876@mountn.dec.com> Date: 23 Aug 90 20:26:49 GMT References: <1540@ntmtv.UUCP> Reply-To: minow@bolt.enet.dec.com (Martin Minow) Organization: Digital Equipment Corporation Lines: 29 In article <1540@ntmtv.UUCP> gauthier@ntmtv.UUCP (Jay Gauthier) writes: > >I'm using the List Manager to manage a single column of data. ... >Horizontal scrolling doesn't seem to >work the way I'd expect/hope. If the list's view rectangle is smaller >than the cell width, ... it appears to >scroll one whole cell width, which ends up displaying blank space because >there is only one column. Yup. That's what it seems to do. You'd have the same problem displaying variable-height cells. The code that actually draws list cells is called with the cell row-column index to identify content and the drawing environment set so the active position is at "that cell" as it is on the screen (clipped etc.) I doubt that you could do what you want using the List Manager. However, it shouldn't be too hard to get Think C's CCellGrid class (if that's the right name) to do what you want. Look in the "More Classes" folder. Unfortunately, it isn't documented but the source code is fairly straight-forward. For that matter, a CScrollPane might also be a good place to start. The list manager is only intended for fairly simple one- and two-dimensional lists of things. It doesn't handle variable-sized cells, nor has Apple claimed that it should. Martin Minow minow@bolt.enet.dec.com