Re: how to disable a normal button..



Hi Nimeesh

> i create a normal button..
> now i want the effect  that whenever i press the button it
> get disable(no one be able to use it) & whenever i press another button
> i must be able to activate that button...
> can i do it in GTk..if ya plz reply me how i do that..

Every widget has a property called GTK_WIDGET_SENSITIVE.

You can change it using

gtk_widget_set_sensitive (GtkWidget *widget, gboolean sensitive);

Bye

Jan-Marek





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