Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!ucdavis!deneb.ucdavis.edu!g099508030ea From: g099508030ea@deneb.ucdavis.edu (Jim Deline) Newsgroups: comp.sys.mac.programmer Subject: Editable TextItems in Dialogs - Help! Message-ID: <3543@ucdavis.ucdavis.edu> Date: 25 Jan 89 08:06:58 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: jedeline@deneb.ucdavis.edu (Jim Deline) Organization: University of California, Davis Lines: 16 I would like to be able to parse a string as it is being typed into an editable textitem field of a dialog, and have all numbers typed appear subscripted relative to the rest of the string. For instance, if I were to type the string 'C6H6' I would like the number six to be subscripted in all occurrences - as in a molecular formula. I would like to be able to do this 'on the fly' - ie. as the string is being typed. Does anyone know if this can be done? If so, I would appreciate some help as I am stumped. PASCAL code fragments would be most welcome, but I could probably get by with C code fragments if I really had to (choke). Jim Deline