Priest of the Order of the Butterfly
Posts: 534 from 2003/2/25
From: France
Quote:
Papiosaur wrote:
get the digit?
sorry, i'm a newbie in C and MUI...
You want to grab numeric keystrokes?
There is many ways to achieve that.
Probably, the easier is doing a custom mui group class at the root of your mui object tree and setup some MUI event handler for grabbing ICMP_RAWKEY events.
Then, from that subclass, you can check if numeric keys has been hit and do whatever processing you like with inside the MUIM_HandleEvent method.
If you're doing something with the keyboard event and you don't want other objects in the object MUI tree to react to that event, you can instruct MUI to 'eat' the event (ie: kind of discard) by returning MUI_EventHandlerRC_Eat in the MUIM_HandleEvent method.
For succeeding with all that, you first need to master MUI subclassing concepts. Best is probably reading some obligement article on the matter, for example:
http://obligement.free.fr/articles/mui_custom_class.php
Keywords: MUI subclass, MUIM_Window_AddEventHandler, MUI_EventHandlerRC_Eat