From: Jeremy C. <jc...@co...> - 2004-01-31 15:26:54
|
On Sat, 2004-01-31 at 10:11, Lyle Johnson wrote: > The data passed along with a SEL_KEYRELEASE message is a pointer to an > FXEvent struct, and the "code" field of that struct holds the key code. > So something like: > > long onKeyRelease(FXObject *sender, FXSelector sel, void *ptr) { > FXEvent *event = reinterpret_cast<FXEvent *>(ptr); > if (event->code == KEY_Return) { > ... > } > return 1; > } > > Hope this helps, Lyle, That does help, but I have one more question. Did I miss this in the docs somewhere? I looked quite a bit and could not find it. Some things with FOX seem not to be documented very well yet and that's my only reason for asking. I am wondering if maybe their is another source for this information, or how you have come to learn this, that way, I can come to learn things the same way and coding will be much more productive :-) Thanks! Jeremy |