Path: utzoo!attcan!uunet!husc6!ukma!nrl-cmf!mailrus!chianti!shane From: shane@chianti.cc.umich.edu (Shane Looker) Newsgroups: comp.sys.mac.programmer Subject: Re: Non-function Cmd Keys with DA Message-ID: <585@mailrus.cc.umich.edu> Date: 25 Jul 88 18:10:17 GMT References: <584@mailrus.cc.umich.edu> <6860009@vx2.GBA.NYU.EDU> Sender: usenet@mailrus.cc.umich.edu Reply-To: shane@um.cc.umich.edu (Shane Looker) Organization: University of Michigan Computing Center, Ann Arbor Lines: 30 In article <6860009@vx2.GBA.NYU.EDU> spector@vx2.GBA.NYU.EDU (David HM Spector) writes: >What exactly is the code you are using the handle the keydown event? > >You might take a look at (my) generic C DA for LightSpeedC which is >in the Info-Mac archives on Sumex-Aim... it handles command keys, et al. >Its DA-LSCGENERIC.HQX I think... > >The window stuff _shouldn't be important, just make sure you put >(some one correct me if I'm wrong!) a nil WindowPtr there... otherwise >the window manager and its friends might get a bit upset. Since you're >using THINKC (I've got to remeber to say that :-) you can keep the window >stuff in an array and do all the updating work by hand... > >David Bad news, David. Your code doesn't handle CMD-Keys either. I just grabbed it and put a command key into the About item. Closer inspection indicates that an Event, not a MenuSelection is being passed to the DA. The event is just the keydown of whatever key you are using with the Cmd key. Now for some more information. If I don't set the windowKind field, then Cmd-Keys continue to work just file. I can't drag the window which is right. If I set the windowKind field to dce->dCtlRefNum, the window drags, but the Cmd is stripped off and I get just the keyDown event. Has anybody else seen this? Is it me? Is it just my personality? I'm really starting to go crazy with this. Shane Looker Looker@um.cc.umich.edu