Thanks
I found an example in one of the SDK examples. But the odd thing is
I get an error unless I use the {}'s around the declaration of theChr.
I have another question posted regarding this. I just used the
braces and everything is ok but I don't understand why they are
necessary. Something to do with declaration statement.
case keyDownEvent: { // Process keystrokes
Char theChr = event->data.keyDown.chr;
// additional deleted.
}
> > I have a button (btnBS) that that operates as a backspace. I use the
> > ctlSelectEvent (with btnBS) to trigger the backspace and execute
> > BackSpace() function.
> >
> > I'd like to have a grafitti backspace stroke act the same as the
> > button. That is, I want an event that recognizes the grafitti
> > backspace stroke to execute BackSpace(). The grafitti stroke already
> > erases the char, as it should.
> >
> > What is the process of trapping on grafitti events so that I can make
> > the backspace grafitti stroke do these other things?
>
> You don't need to trap the graffiti event. Instead, look for the
> backspaceChr keyDown event.
>
> Or, you could do like I did in one of the apps I've written. One of the
> forms has a field and a numeric keypad (comprising individual buttons)
> with a backspace key. In my event handler for the form, I handle the
> keypad button presses by enqueueing keyDown events. For the backspace key,
> I just enqueue a backspaceChr keyDown event. That way I can let the system
> field handler do all the work.
>
> --
> Roger Chaplin
> <[EMAIL PROTECTED]>
>
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------