Path: utzoo!mnetor!uunet!husc6!uwvax!dogie!uwmcsd1!ig!agate!ucbvax!decwrl!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr From: leonardr@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Fake a KeyDown as MouseDown in Moda Message-ID: <226000008@uxe.cso.uiuc.edu> Date: 24 Apr 88 19:19:00 GMT References: <7735@ames.arpa> Lines: 30 Nf-ID: #R:ames.arpa:7735:uxe.cso.uiuc.edu:226000008:000:1636 Nf-From: uxe.cso.uiuc.edu!leonardr Apr 24 14:19:00 1988 soe@ames.arpa(Brad Soe) writes in comp.sys.mac.programmer >I want to know if it is possible to use the filter function >passed to ModalDialog to take a keydown event, change it to >a mousedown event, and have ModalDialog process this. I have >a problem where I have two textedit boxes in a dialog. >I want the dialog to behave in such a way that if the user >hits the return key in one textedit box, the cursor >automatically goes to the next text box and activates it. >I have tried to modify: event.where to a point in the >rectangle, set event.what = mouseDown, and >OrBit(Event.modifiers, 128) (sets the mouse down bit), but >it does'nt seem to work. Is there a way to do this? > Although I have not actually tried this, I see no reason why you could not just change the keydown from a return to a tab and then pass it back to the the standard filter which would then process it the way you want. +---------------------------------+-----------------------------------+ + + Any thing I say may be taken as + + Leonard Rosenthol + fact, then again you might decide+ + President, LazerWare, inc. + that it really isn't, so you + + + never know, do you?? + + leonardr@uxe.cso.uiuc.edu + + + GEnie: MACgician + + + Delphi: MACgician + + + + + +---------------------------------+-----------------------------------+