Problems with focus?



Hi,

I have a program with a main window and a child window that is shown/hidden
by pressing a button. I use a callback which looks if the child window is
visible to hide it, or not visible to show it. That works fine.

I also want that the child window can be hidden using the same callback by
pressing a "hide-button" which is packed in this child window.

The problem is when I used this "hide-button" to hide the child window, I
cannot do anything else until I press the mouse-left button again.
Is this a problem of focus? I've tried to grab focus into the main window
after hiding the child window in my callback, but it doesn't work..

What can I do?

Thanks in advance,
    Ignacio




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