Re: disabling buttons



Ian,

This is all in the API, i cannot believe you overlooked it :/
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#a37

Bart

On Tue, 2004-11-02 at 12:42 -0700, Ian Strascina wrote:
> 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...???
> 
>  	- Ian
> 
> -------------------------------------------------------------------------------
> "C makes it easy to shoot yourself in the foot; C++ makes it
>   harder, but when you do, it blows away your whole leg..."
>  	-- Bjarne Stroustrup
> -------------------------------------------------------------------------------
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
www.titanium-it.nl --- Open Minded Open Source
www.heavenisopen.com <-----Another Source




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