Hello, On Mon, May 4, 2009 at 10:46 AM, thron7 <[email protected]> wrote: > > Rui Lopes wrote: > > Hello, > > > > I want to dive into themes, and as a start, I want to create a > > scrollbar that is somewhat alike the OSX ones [0]. > > > > So far I've manged to see how the scrollbar child controls are > > created, eg, in the framework/source/class/qx/ui/core/ScrollBar.js file: > > > > construct : function(orientation) > > { > > this.base(arguments); > > > > // Create child controls > > this._createChildControl("button-begin"); > > this._createChildControl("slider"); > > this._createChildControl("button-end"); > > ... > > > > To create the osx alike scrollbar, the "slider" child control needs to > > be the first added into the container. But how can I do that? > > Why would you want to change the order of the child controls? Have you > tried deriving an own theme from, say, Modern and overriding > "scrollbar*" attributes?
That was the only way I found to create a scrollbar alike osx. I did my own theme, though, I didn't find a way to make the "slider" child control the first item. How can I do that using "scrollbar*" attributes? > > Modifying the "construct" function does not seem to the a good ideia > > (because I cannot use the normal theme if I do that). Thoughs? > > For one thing, whenever you feel you want to change a framework class, > derive a custom class from it and do your stuff. And how can I change it globally? I mean, taking the scrollbar case, how can I replace the standard scrollbar with my own scrollbar? (so, other existing controls will use my scrollbar) Thanks, Rui Lopes [...] ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
