Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!cs.dal.ca!ug.cs.dal.ca!johnston From: johnston@ug.cs.dal.ca (Bruce Johnston) Newsgroups: comp.sys.mac.programmer Subject: Scrolling in a Window Message-ID: <1989Oct12.200432.26086@ug.cs.dal.ca> Date: 12 Oct 89 20:04:32 GMT Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada Lines: 23 Howdy mac programmers, I have a question fo you all. I am in the process of writing a mini-editor and I have a problem. I have created a window with both a horizontal and vertical scroll bar. The problem is that I do not know how to figure out how far one should scroll the horizontal or the vertical scroll bar when the page down or up area is clicked on. Is there a standard that is used for these values or does anyone have any code that does it. I am especially wondering about the horizontal scroll bar since I think I can use some info in the TE record to scroll vertically. However, if someone has some ideas or code for both, well...... that would be even better! I am running Think C 3.0 on an SE so ideas in said language would be appreciated. Bruce Johnston (johnston@dalcsug.UUCP) . -- Bruce Johnston Dalhousie University Halifax, Nova Scotia, CAnada. Disclaimer: I'm always right... and submarines have screen doors!