Path: utzoo!attcan!uunet!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: List Manager questions Message-ID: <8138@hoptoad.uucp> Date: 26 Jul 89 20:20:07 GMT References: <8374@bsu-cs.bsu.edu> <227700017@uxa.cso.uiuc.edu> <8115@hoptoad.uucp> <5129@umd5.umd.edu> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 41 In article <227700017@uxa.cso.uiuc.edu> jpd00964@uxa.cso.uiuc.edu writes: > I also had horrid problems putting a list in a modeless dialog box. Most > of my problems were alleviated when I did as much as possible outside of > the filter proc. There is some incompatability, and I do not know where. In article <8115@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: > ... the only problems are (1) ModalDialog doesn't return an event record... > ... (2) the list rectangle has to be inset fifteen pixels for scroll bars. > As long as you install a userItem procedure with the proper call to LUpdate, > and make sure the scroll bar lies inside the userItem as described in (2), > the whole thing works quite well. In article <5129@umd5.umd.edu> zben@umd5.umd.edu (Ben Cranston) writes: >Tim, the user was talking about MODELESS dialogs and you are talking about >MODAL ones. Oops, sorry. I just couldn't imagine that anyone was really having problems with lists in modeless dialogs. They're incredibly easy. >Nevertheless, I basically agree that it pretty much works. One >area I have had trouble with is activate/deactivate, which only happens in >the MODELESS case (you cannot put a MODAL dialog into background or indeed do >ANYTHING until you satisfy it). The dialog manager KNOWS about TextEdit so >it can deactivate and activate any included TextEdit items in response to the >corresponding event. It does NOT know about the List manager in this way, >so I found I had to manually check for these two events and manually call >LActivate (before the IsDialogEvent/DialogSelect stuff as I recall). You ought to do it after IsDialogEvent and before DialogSelect. On the other hand, you don't really *have* to do it at all. If you don't, your scroll bar(s) will still show and that's the extent of the problem. Most users won't even notice. >Other than that, I have had no trouble with lists in modeless dialogs... -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "What's the ugliest part of your body? Some say your nose, some say your toes, But I think it's your mind." -- Frank Zappa