[Gtk-sharp-list] Gtk.Dialog Response event
Mike Kestner
mkestner at novell.com
Tue Jan 23 11:08:24 EST 2007
On Tue, 2007-01-23 at 17:37 +0200, Radu wrote:
> Hello,
>
> I have a dialog witch prompts the user for some information. And when
> the user click the 'OK' button in the ActionArea it does some testing
> with the information and it quits if the information proved to be
> correct. If the information was wrong it offers to the user the
> possibility to enter the information again, so it doesn't quit.
>
> Now I want to get the information entered by the user and the result of
> the test.I read about Run() method, that blocks waiting for the user
> responded to the dialog. But I want Run() to remain blocked even if a
> user clicks a button from ActionArea and to return control only when I
> close the dialog. Can I do that or I have to look for another approach?
Sounds like you could accomplish your goal by subclassing Dialog and
overriding OnResponse. If the validation succeeds, call
base.OnResponse, otherwise do nothing.
--
Mike Kestner <mkestner at novell.com>
SUSE® Linux Enterprise 10
Your Linux is ready™
www.novell.com/linux
More information about the Gtk-sharp-list
mailing list