Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!prism!loligo!pepke From: pepke@loligo.cc.fsu.edu (Eric Pepke) Newsgroups: comp.sys.mac.programmer Subject: Re: scroll bar problem Keywords: programming issue Message-ID: <575@loligo.cc.fsu.edu> Date: 11 Apr 89 21:20:37 GMT References: <425ca822.1285f@maize.engin.umich.edu> <2642@masada.cs.swarthmore.edu> <27714@cci632.UUCP> Reply-To: pepke@loligo.UUCP (Eric Pepke) Distribution: usa Organization: Supercomputer Computations Research Institute Lines: 15 I always have the refcon of the window hold a handle to a structure, record, or object which contains all of the information about the window, including handles to the scroll bars. This does not require dinking with any of the Window or Control Manager's data structures, using global variables, assuming anything about the order of controls, or arbitrarily limiting the number of windows. The only assumption this makes is that a refcon is large enough to hold a handle. Eric Pepke ARPA: pepke@gw.scri.fsu.edu Supercomputer Computations Research Institute MFENET: pepke@fsu Florida State University SPAN: pepke@scri Tallahassee, FL 32306-4052 BITNET: pepke@fsu Disclaimer: My employers seldom even LISTEN to my opinions. Meta-disclaimer: Any society that needs disclaimers has too many lawyers.