> I have two window in the screen display, one is on the left > side, another is on the right side. Now if I push in the left > side window, the right side window will be in deactivate > status and can't recieve any keypad event. It only can > receive keypad event until I push inside it. > > So I have a question is, how to make the window always > activate, then even I push in the left side window to make > the focus in the left side window, but the right side window > still can receive keypad event.
I am not sure I have understood your question: What I think you have is two separate windows, and you want to ensure that all keyboard activity is directed to the right hand window, even if the left hand window has the mouse focus. Is that correct? So... - Do you need to use separate windows? This might be easier to manage if you had a single, bigger, window with two groups inside it. - Perhaps setting the right hand window non-modal for the left hand window might give you the effect you need? - If neither of these ideas are any good, then I think what you need to do is make your left hand window a subclass of Fl_Window, and in the subclassed handle method have it reject any keyboard events (i.e. return 0 for any keyboard events.) That should make the fltk event handling propagate the keyboard events to the next window (the right hand one) where it can then process them normally. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

