I have a PtRaw widget for which I would like to have several event handlers.
Can I use the following?
Ph_EV_PTR_MOTION_BUTTON, TxEventMouse, NULL);
PtAddEventHandler(pwRaw, Ph_EV_KEY, TxEventKey, NULL);
Or do I have to use PtAddEventHandlers()?
In my example, the first callback (TxEventMouse) is getting called okay.
The second callback never gets called (TxEventKey), event when I comment out
the first call to PtAddEventHandler(). Why? What did I forget to set for
the PtRaw widget so I can get the key events?
I would like to know, for example when the user hits the ‘Delete’ key.
Can you explain where ‘key’ events get directed to as far as widget focus
and window focus?