Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-20 Thread sgallego
I found the key!! I follow the step from clicking the button to get the alert popup...these are the steps: * I click the button ( mousedownevent fired ) * _applyChecked fired. * _applyChecked calls _handleItemChecked on the RadioManager. * Radio Manager calls _applySelected. changeSelected eve

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-20 Thread Alexander Back
Hi, On Thursday 19 March 2009 sgallego wrote: > Alert popup appear asking me before make the page change... if I click > 'Cancel'...the event not occur over my buttonView class...but the event is > propagated and 'chagechecked' over the button clicked is fired. > Can I do somwthing like stopPr

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-19 Thread sgallego
Ok... I'm close to the solution... Alert popup appear asking me before make the page change... if I click 'Cancel'...the event not occur over my buttonView class...but the event is propagated and 'chagechecked' over the button clicked is fired. Can I do somwthing like stopPropagation funct

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-19 Thread Christian Schmidt
Hi, I think it isn't so easy, you have to create three classes: 1) A class witch is extend from "qx.ui.selection.RadioManager". This class should override the "_applySelected" method. Here you can put your confirm code. 2) The next class extend from "qx.ui.pageview.tabview.Bar". There you have

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-18 Thread sgallego
Well, I'm trying with an example like this qx.Class.define("custom.ButtonViewOmyst", { extend: qx.ui.pageview.buttonview.Button, members: { setChecked : function() { var res = confirm("Cambio de pagina..."); if( res ){ this.base(arguments);

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-18 Thread thron7
sgallego wrote: > Ok, I have defined a little class that ask before changing the page... now > the problem is... how can I include this new class in the build process?? > It's picked up automatically with the next make source or make build - provided you are working with a skeleton-based app

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-18 Thread sgallego
Ok, I have defined a little class that ask before changing the page... now the problem is... how can I include this new class in the build process?? I'm using 0.7 version qooxdoo Here's the code: qx.OO.defineClass("qx.ui.pageview.buttonview.MyButton", qx.ui.pageview.buttonview.Button, function(v

Re: [qooxdoo-devel] alert user before chaging page in buttonview

2009-03-17 Thread thron7
Currently, you would need to define an own class extending TabView. In this class, you could override the _apply method of the 'selected' property, to do your own stuff. You might have to call the parent's _apply method at the end, to continue with normal operation. There is a bug to introduce

[qooxdoo-devel] alert user before chaging page in buttonview

2009-03-17 Thread sgallego
Hi, I'd like that a popup appears asking the user before changing page in a buttonview. The user could select if changes to the new page or does nothing. I tried to handle the changechecked event in every Button...but page changes before asking... Is there any way to do this? Thanks! --