Re: [gtkmm] Gtk::Window



Alexander Bussman wrote:

Hi!
I wonder if it's a way to lock the application until a newly created window is closed. I need to do that because I want to grab a string from that window (that the user writes).

something like this I mean:
...
mywindow.show();
wait_until_mywindow_is_closed();
std::string data = mywindow.getData();
...

I can't figure out a good way to do this.... anyone?

Try show_modal()




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