From: Jim I. <ji...@ap...> - 2004-04-05 18:11:06
|
If you add: toplevel .t entry .t.e pack .t.e to your example, then do the hide/reveal thing with the . window, then=20= you can show your bug. You won't be able to type into the . text=20 widgets until you bring .t back to the front, then . again. I put printf in TkMacOSXProcessWindowEvent, which is where we handle=20 window Activation & Deactivation. What I see is: Normal case: when you just click on .t or . to foreground a window you=20= first get the Deactivate event for the window that is going to the=20 background, then the Activate event for the new window. Hide/Reveal case: when you hide the window, then on Reveal, you first=20 get the Activate event for the revealed window, THEN the Deactivate=20 window for the previous foreground window. So we end up with nobody having the focus... %$^#$%@#!#@$ Can you file a bug on this? Jim On Apr 3, 2004, at 12:23 PM, J=E9r=F4me Gagnon-Voyer wrote: > I have a problem with TCL-TK in aMSN > > When I put a chat window in the dock (clicking on yellow button) and=20= > re-click in the dock to make reappear the window, i'm not able to=20 > click in the text widget (input text) to write something. I try to=20 > type something and nothing appear. if i switch window and get back to=20= > the first window, then i'm able to write something > > Someone has an idea of what happen? I tried to reproduce that with=20 > script, but strange, no problem with that script. So I understand i'm=20= > not very clear but if someone has an idea...just say it!! > > frame .f -width 300 ; > update idletasks ; > text .c1 -background white -width 15 -height 3 -wrap word -font bboldf=20= > -borderwidth 0 -relief solid -highlightthickness 0 -exportselection 1 > text .c2 -background white -width 15 -height 3 -wrap word -font bboldf=20= > -borderwidth 0 -relief solid -highlightthickness 0 -exportselection 1 > .c2 configure -state disabled > pack .f ; > pack .c1 -side left -expand true -fill both -padx 1 -pady 1; > pack .c2 -side right -expand true -fill both -padx 1 -pady 1; > > > > ------------------------------------------------------- > 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=3D1470&alloc_id=3D3638&op=3Dcl= ick > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- Jim Ingham ji...@ap... Developer Tools Apple Computer |