[gtkmm] Gtk::Window, bring window to top



Hi,

i have 2 Gtk::Window Objects. And i want to bring the 2nd window to the
front when i click a button on the 1st window.

i tried it with the following code, but the 2nd window only gets the
focus but it don't comes to the front.


frmTwo *frmTwo = new class frmTwo();
frmTwo->show();
frmTwo->activate();
frmTwo->grab_focus();
this->hide();   // this is Window One


Thanks for any help.

jan






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