Re: Gtk Window

You have to set your window _Modal_ to block access of other window. But to stop the execution of the code, I don't know if there is a Gtk implementation of it. I'm doing this solution. I have a boolean that is initialized to TRUE when I'm showing the modal window and then I have the folowing code :
 while ((gtk_events_pending()) || (bDlgInfoState_X == TRUE))
This loop process the gtk-event, so the modal window respond to user interaction. And as soon as the modal window is hidden, bDlgInfoState_X is set to False, so I'm exiting this loop.
Hope this help :-)
Best regards,
Jean-Christophe Berthon
Cap Gemini -- Ernst & Young
Skill IS -- Image Quality
Email: Jean-Christophe Berthon cgey com
Tel: (+33) 561 31 6639
----- Original Message -----
From: haojl
Sent: Wednesday, November 14, 2001 9:05 AM
Subject: Gtk Window

how to create a window that i can't access other window , if i don't close the window , and when the code of gtk_widget_show(window) is execute , next code not continue execute if the window don't close (not destroy , hide the window)

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