On Fri, Aug 23, 2013 at 2:49 AM, Richard Sternagel <
[email protected]> wrote:
> Hi Ilkka,
>
> what do you mean by:
>
> > I could remove the 'disappear' event handler but then the button
> > state would be out of sync.
>
>
I mean that if I click somewhere outside of the button and popup, the
popup gets hidden (because of autohide true) but the button stays checked.
The value of the widget represents the checked state. So in the
> changeValue listener "e.getData()" gives you either checked (true) or
> unchecked (false) which is all you need imho.
>
> Due to the nature of the widget "qx.ui.toolbar.CheckBox" (which extends
> "qx.ui.form.ToggleButton") it cares about the toggling by itself, so no
> need for you to interfere (by use of an explicit "button.setValue(false)").
>
>
>
I'm basically trying to do the same that qx.ui.form.MenuButton widget
already does. But instead of Menu object that MenuButton wants, I have my
own custom widget I want to show and hide. In my real code I have added
this custom widget inside the popup. Could I still use MenuButton in this
case?
-ilkka
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel