I have two windows, one closes with Destroy() but the focus doesn't return to the other window. I've tried having a dummy parent window passed to first arg of Create for both windows to no affect. Also I've tried doing firstwindow->SetFocus() right before the secondwindow calls Destroy().
The window focus always leaves the app and the firstwindow->SetFocus() seems to do nothing.
window focus after close of window leaves app Topic is solved
I assume that firstwindow->Show() defaults to firstwindow->Show(TRUE). But I have tried both to no effect.
However, recently I tried having the second window inherit from wxDialog instead of from an object inheriting from wxFrame. Someone mentioned that dialogs "have different semantics" from toplevelwindows, on IRC.
But I tried this and it changed nothing. Perhaps I'm doing it wrong somehow. I'm really at a loss, its been days with this one simple problem.
I'm thinking it has something to do with the parent window not being specified properly or both windows not sharing a common parent or something. But I am specifying firstwindow as the first argument to Create.
I need to know why the app loses focus when that second window closes. Its like it thinks that the app has closed when the second window closes instead of switching to the first window, but no one seems to know the answer to this.
However, recently I tried having the second window inherit from wxDialog instead of from an object inheriting from wxFrame. Someone mentioned that dialogs "have different semantics" from toplevelwindows, on IRC.
But I tried this and it changed nothing. Perhaps I'm doing it wrong somehow. I'm really at a loss, its been days with this one simple problem.
I'm thinking it has something to do with the parent window not being specified properly or both windows not sharing a common parent or something. But I am specifying firstwindow as the first argument to Create.
I need to know why the app loses focus when that second window closes. Its like it thinks that the app has closed when the second window closes instead of switching to the first window, but no one seems to know the answer to this.
It appears this is a problem with my window manager enlightenment since the wx samples "dialogs" app has the same problem but does not have that problem within my half working gnome installation. So who knows. The usual bullshit I guess. I'm trying to find someone who knows something about my window manager now.
Edit:
The latest enlightenment cvs code fixes the issue.
Edit:
The latest enlightenment cvs code fixes the issue.