Some things are really easy, are they? ;)

Sebastian



Am 19.09.2007 um 01:16 schrieb Jim Hunter:

It never fails, you can work on something forever and not figure it out but the minute you post a question you see the answer. The way to add state to a button is with addState() method, DOH! The only thing I did discover was that the older constants that I had a note on do not work and all you need to do is pass in the string 'pressed' to the method. So it simply looks like:

btn.addState('pressed')

or

btn.removeState('pressed');

Jim


On 9/18/07, Jim Hunter < [EMAIL PROTECTED]> wrote:
I may just be brain dead but I can't find a way to present a button in the 'pressed' position? What I have is a toolbar with a button to bring up a filter dialog. And if the filter is active, I want the filter button to stay 'pressed'. Then once the button is clicked again, I can see that it is 'pressed' and clear the filter and 'unpress' the button. I am using a qc.ui.toolbar.Button, how would I go about this seemingly trivial thing?

Thanks,
Jim
www.D4PHP.org
www.D4PHP-Hosting.com


---------------------------------------------------------------------- ---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to