[Plib-users] Problem with puInput
Brought to you by:
sjbaker
From: SkyFlash <sky...@ch...> - 2003-03-14 17:38:46
|
Additionally to my last problem, I am having difficulties with puInput.. Basicly, I want the input to be active and accepting input at all times, even when mouseclicks elsewhere happen. I tried doing it with puSetActiveWidget, but that doesnt work. Its not doing anything, I call it in every callback after the pu events are done, but still I get no I cursor in the input box and its not accepting input. Btw, I also do call acceptinput on the widget after every call that could take it away. Then, I want to capture the enter key event and then clear the string in the input and handle it, while still accepting the next input in the textbox. That doesnt work as well, cause there is no callback that gets called when the enter key is pressed. It does of course call the normal callback, but that one is also called when you click the input widget, so its useless cause I dont wanna send the string when someone clicks the widget, but only when enter is pressed. I also cant check for enter in the callback cause its not added to the string apparently, thus I cannot check whether the callback was called for the enter key or for clicking the mouse on it. I hope there are solutions for that... thx Ralf Pietersz |