Hi Vincent,

On Tuesday March 16 2010 15:14:11 Vincent Bernardi wrote:
> I am trying to theme a horizontal qx.ui.form.Slider in such a way that the
> slider knob has a greater height than the slider bar. The knob is a
> ChildControl while the bar is the Slider itself. My slider appearance
> currently sets a decorator.Grid on the bar and the height of the bar to 6
> px, and the knob appearance sets a decorator.Background with a
> center/middle backgroundImage and the height of the knob to 12px. The
> problem is that the backgroundImage of the knob is clipped to the slider
> bar, while I want it to overflow on the top and bottom of the slider bar.
> 
> Anyone has any idea how to do this?
I guess you need to subclass the slider widget and change several 
implementation details to achieve this. 
All widgets have per default the overflow set to "hidden" (for both X and Y). 
Since the knob is a child control you can either change the "overflow" default 
setting or you need to position the knob widget outside the slider in an 
absolute way to make it visible.

A third way is to create a custom widget to achieve this. The best way would 
be to create a container where the slider and the knob widget are both child 
controls. This way the knob can be bigger than the slider widget.

cheers,
  Alex

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to