about focus?



hello:
	now i use the gtk_window_set_focus() and could set focus at a button.
but now a new problem  rising. it's following:
1.create a toplevel window;
2.create a text edit in the window;
3 create a button with label"a" in the window.
i want to press the button then 
	1.set focus in the text edit;
	2. send a keyevent to the text edit and show the key "a" in the text edit;
	3. set the focus to the button.
but the result is :
	1.set focus in the text edit,the step is ok;
	2.in the text edit no show the key "a";
	3.set the focus to the button,that's right.
you see the problem is in the 2,how to handle with it.
Thanks in advance.

Thanks a lot!
kasonhuang kinposh com cn
                                                                               kason





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]