Path: utzoo!attcan!uunet!samsung!sdd.hp.com!decwrl!ucbvax!agate!shelby!csli!weyand From: weyand@csli.Stanford.EDU (Chris Weyand) Newsgroups: comp.sys.mac.programmer Subject: Selection in TE Message-ID: <14358@csli.Stanford.EDU> Date: 7 Jul 90 01:32:21 GMT Sender: weyand@csli.Stanford.EDU (Chris Weyand) Organization: Center for the Study of Language and Information, Stanford U. Lines: 16 I'm writing an application that selects text (using TextEdit) from the keyboard (e.g. select word,sentence, ...) There doesn't seem to be any way of extending a selection without calling TEClick. Is this correct? The only solution I could come up with was to call TEClick (passing TRUE for extending selection) with the proper point. I thought TEGetPoint would convert my offset into the proper point but it doesn't! When I call TEClick(TEGetPoint(myoffset,macTE),TRUE,macTE) it actually gets a click at the right horizontal position but the vertical position is off by a line Ends up in next line). This is really a hack I'd much rather have an extend selection function. Anyone have any help? Thanks Chris Weyand weyand@csli.Stanford.edu