Is RiscOS have "Focus In" and "Focus Out" events?
Sergey Lentsov (8268) 63 posts |
Hello, Is RiscOS (or Toolbox) have “Focus In” and “Focus Out” events? I needs to detect that focus moved to from one WritableField to another. I know about “Lose Caret” and “Gain Caret” events but it seems not sent when focus moved between controls in same window. |
Steve Fryatt (216) 2105 posts |
Lose Caret and Gain Caret tell you if the caret moves in or our of your window. Within the window, it will either move as a result of a mouse click (which you can get an event for) or a keypress (which you can get an event for). Both will give you the icon handle, so you can use events on the icons that you expect to have the caret to track where it is. For keypresses, you might need to use the K validation command to be notified of the events. PS. That’s the standard Wimp. I don’t know if the Toolbox changes things at all. |