Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!msi.umn.edu!umeecs!heavy From: heavy@zip.eecs.umich.edu (Richard Scott Hall) Newsgroups: comp.sys.atari.st Subject: Re: Formdoit Summary: Sounds good Keywords: form_do() Message-ID: <1991Feb19.203647.29673@zip.eecs.umich.edu> Date: 19 Feb 91 20:36:47 GMT References: <65iLX5w163w@ersys.uucp> Sender: Richard Hall ( heavy@zip.eecs.umich.edu ) Organization: University of Michigan EECS Dept. Lines: 48 In article <65iLX5w163w@ersys.uucp> ersys!ggranger@nro.cs.athabascau.ca (Greg Granger) writes: > [stuff deleted] >It also adds a number of extensions: > > o Tab and down-arrow will move the cursor to the first editable field >in a > dialog box if it is already at the last one. > o Up-arrow will also wrap, from the first field to the last. [stuff deleted] > o If a dialog box does not have a "default" button (of the type that >gets > selected if the Return key is pressed), then the Return key will > automatically advance the cursor to the next editable field. It is funny, I just spent all weekend writing code for a form_do that these type of features. Of course my code did not have all the features mentioned here, nor was it an autoprogram, it was just intended for me to link in with my programs. The features I added: o Up/Down/Tab keys all wrap around, no more stopping at the top or bottom. o The RETURN key will always advance you to the next field unless you are at the last field then it will exit the dialog box. Very convenient for entering text into forms. o The ENTER key will exit you like the normal RETURN key. o And the real clincher for the program I am working on, the form_do will also look at the serial port to see if anything is there, and if there is anything, it will enter it into the current text field as if it were typed from the keyboard. I wrote it in Lattice C v.5 and it seems to work pretty good for my programming purposes. Richard Hall University of Michigan -- Standard disclaimer: I am not me, I am who you think you are... so don't blame me.