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?
>
> 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.
That might also be a good start to have an own widget you can apply new
themes on.
T.
>
> TIA!
>
> Best regards,
> Rui Lopes
>
> [0] http://www.flickr.com/photos/jasonabradley/1814060167/sizes/o/
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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