Hi Rui, On Monday 04 May 2009 Rui Lopes wrote: > 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? The scrollbars in qooxdoo are styled with appearances and these apperarances are using several decorators to getting things done. So if you want to style your own scrollbar you have to look at the "qx.theme.modern.Appearance" and "qx.theme.modern.Decoration" classes and overwrite the "scrollbar*" entries in your own appearance/decoration theme. Since you did your own theme you are on the right track :-) If you define "scrollbar*" entries in your own appearance/decoration theme these are automatically used for your application (you extend the appearance/decoration theme this way).
> 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) If you did the theming of your scrollbar you have two choices to change it globally. You can patch the constructor of the "qx.ui.core.Scrollbar" class with an appropriate mixin to change the order of the child controls. Or you can create your own scrollbar class and patch the "_createChildControlImpl" method of the "qx.ui.core.AbstractScrollArea" class to replace the default scrollbar widget with your own one. Except of the table widget every widget uses the "AbstractScollArea" class to show scrollbars. With "patch" I mean using the "qx.Mixin.patch" method. If you further questions don't hesitate to ask. cheers, Alex ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
