Re: [gtk-list] Creating a modal dialog box?



On Thu, 10 Sep 1998, Curtiss Howard wrote:
>Any way to make a dialog box (or window) to be modal?  Or at least is 
>there some other way to prevent input in other parts of the application 
>before a dialog box has been closed?
>
here what i did to make dialog box:

// shows modal
GtkWidget* window = gtk_window_new (display);
gtk_widget_show(window,position);
gtk_grab_add(Window());
gtk_main();
//......
// closes modal
gtk_grab_remove(wndow); 
gtk_main_quit();

hope this helps.

Mario Motta
===========
AI Research Group - Rimini
mmotta@guest.net
http://www.guest.net/homepages/mmotta/index.htm



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