|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Theme question: Forward state from "slider" to the "slider-knob"?Hi there.
I creating a custom theme and have a question regarding the slider widget. Is it possible to forward the pressed and focused states of the "slider" to the "slider-knob"? Using states.focused and states.pressed in "slider-knob" don't seems to work. Thanks a lot. :) |
|
|
Re: Theme question: Forward state from "slider" to the "slider-knob"?Each widget class has a map _forwardStates.
You would need to change the _forwardStates map in slider to include these states (providing that slider itself has those states to begin with, I haven't checked). If you do slider._forwardStates.focused = true; and slider._forwardStates.pressed = true; then that will effect ALL sliders as the map is shared. joakim_ wrote: > Hi there. > > I creating a custom theme and have a question regarding the slider widget. > > Is it possible to forward the pressed and focused states of the "slider" to > the "slider-knob"? Using states.focused and states.pressed in "slider-knob" > don't seems to work. > > Thanks a lot. :) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Theme question: Forward state from "slider" to the "slider-knob"?Thank you very much for you reply. It worked! :)
|
|
|
Re: Theme question: Forward state from "slider" to the "slider-knob"?Matthew Gregory wrote: Each widget class has a map _forwardStates. You would need to change the _forwardStates map in slider to include these states (providing that slider itself has those states to begin with, I haven't checked). If you do slider._forwardStates.focused = true; and slider._forwardStates.pressed = true; then that will effect ALL sliders as the map is shared. Again, nice answer, Matt. T. joakim_ wrote: ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Theme question: Forward state from "slider" to the "slider-knob"?Once again thank you for your solution. Is there a way I can do this without changing the code in Slider.js? Is it possible to do it directly in the Appearance.js file? Thanks.
|
|
|
Re: Theme question: Forward state from "slider" to the "slider-knob"?I think you can do this inside Application.js
qx.ui.splitpane.Splitter.constructor._forwardStates = { focused : true, pressed : true }; joakim_ wrote: > Once again thank you for your solution. Is there a way I can do this without > changing the code in Slider.js? Is it possible to do it directly in the > Appearance.js file? Thanks. > > > Matthew Gregory wrote: >> Each widget class has a map _forwardStates. >> You would need to change the _forwardStates map in slider to include >> these states (providing that slider itself has those states to begin >> with, I haven't checked). >> >> If you do slider._forwardStates.focused = true; and >> slider._forwardStates.pressed = true; then that will effect ALL sliders >> as the map is shared. >> >> joakim_ wrote: >>> Hi there. >>> >>> I creating a custom theme and have a question regarding the slider >>> widget. >>> >>> Is it possible to forward the pressed and focused states of the "slider" >>> to >>> the "slider-knob"? Using states.focused and states.pressed in >>> "slider-knob" >>> don't seems to work. >>> >>> Thanks a lot. :) >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@... >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |