On Tuesday 09 March 2004 17:44, Groeting Claus ICM Bocholt wrote: > Hi Peter ! > > Thanks for Your advice. I am not quit sure If I can fulfil following > scenario: > > "get noticed if someone wants to dial number by using the Key like 0,1...9"
You might try to create 10 buttons (all sized 0) with hotkeys '0'..'9' attached to them. You'd have to decide what to do with them when you go into a config menu or something, delete them or ignore the ACTIVATE events. Also when you open an edit box, I'm not sure where the events will go. Will the keys end up in the edit box, or will you still receive ACTIVATE events from you buttons? > it would be helpful to have a any kind of callback or signal handler to > receive > Key events like PG_TRIGGER_KEYDOWN, PG_TRIGGER_KEYUP and so on... Sure, I can't believe it is not supposed to work like this, but till now I haven't figured out how to make this work. I've stepped through the code handling the key events, but the way these events are traversing is not very clear to me. First they go to popup widgets, all their children, then all applications, and then finally to the focussed widget. This order seems very strange to me. But even when I focus the widget that I installed a PG_WE_KBD_CHAR handler for, it is not called. The event does not even seem to be sent to the client, by the pgserver. The only event I seem to be able to install a handler for is the PG_WE_ACTIVATE event, which occurs when the hotkey of a button is pressed. I've found this in <picogui/constants.h>: /* Constants for PG_WP_EXTDEVENTS, to enable extra events */ #define PG_EXEV_KEY 0x0010 /* Raw key events KEYUP and KEYDOWN */ #define PG_EXEV_CHAR 0x0020 /* Processed characters */ But I don't know what this means; "to enable extra events" Maybe this is where the solution lies... > We tried already the nano-x, and with that system we were able to handle > all key events. > But there we do not have any widgets :( And with using FLTK its getting to > big for a small embedded phone. Same here, that's the reason I'm still trying to use picoGUI. Please note that the creators of PicoGUI lost all interest in the project, they don't even reply to questions about the internals of PicoGUI. I think it might be usable, but you'd have to find everything out yourself :-( If you do find anything, please let it know on this list, so that others do not have to struggle like we do. Regards, Pieter ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
