> > > I have two window in the screen display, one is on the left=20 > > side, another is on the right side. Now if I push in the left=20 > > side window, the right side window will be in deactivate=20 > > status and can't recieve any keypad event. It only can=20 > > receive keypad event until I push inside it. > >=20 > > So I have a question is, how to make the window always=20 > > activate, then even I push in the left side window to make=20 > > the focus in the left side window, but the right side window=20 > > 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? >
Yes, this is my meaning. > 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? > The two window are not in one process. Process A has a window in left hand side, and Process B has a window in right hand side. So I think I can't use the above two method. Sorry I forget to mention this in my description. > - 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 SS= > 14 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

