What I want to do is intercept up/down cursor in certain textctrls so
that when the control has focus the value can be incr/decremented
using the cursor keys.
Other controls such as listboxes should function normally with the
cursor keys.
The only way I could think of to do this was create 2 hidden buttons,
set up accelerators for the up/down keys to generate the button
command events, in the event handlers test for the correct controls
having focus, and if so, incr/decrement the value and otherwise call
evt.Skip()
The problem is that the listbox on the screen doesn't respond to up/
down any more.
Setting the event object doesn't seem to do anything. This is what I
have:
def OnUpCursor(self,evt):
focus = self._focus_test()
if focus is None:
evt.SetEventObject(focus)
evt.Skip()
return
val = int(focus.Value)
focus.Value = str( val+1 )
Does anyone have any ideas that could help me here?
Thanks.
Rick King
Southfield MI