Re: disabling buttons



Hi,

Ian Strascina <istrasci cs nmsu edu> writes:

> Is there anyway to disable a GTK button once it has been pressed (and
> re-enabled upon other conditions) similar to
> javax.swing.AbstractButton.setEnabled(boolean)...???  I have a
> simulation running and one button that starts it all...  I would like
> to ensure the "start" button cannot be pressed while the simulation is
> running...  Is there any way to do this...???

gtk_widget_set_sensitive (button, FALSE);

Cross-posting such a question to three mailing-lists is somewhat silly
though.


Sven



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