Change ScrollBar in V2 ComboBox
Piatok, December 15th, 2006Question: Is it possible to change ScrollBar width in V2 ComboBox? And ScrollBar’s Up and Down Arrows _height?
Till now I know only possibility to skinn all stuff, but I really can’t change them _width or _height. Sure I know, that size of scrollBar can be changed by calling scrollbar.setSize(10,40), but only for single instance of UIScrollBar. But if I want to change it for scrollbar which is in ComboBox, i can’t do it, because I can’t access its instance.
Is this possible? I need to know it as fast as possible because of deadline…
Question2: How can I set rowHeight to ComboBox List (when user clicks to comboBox and items are listed in List. I can change skin, but rowHeight() is function of List instance.
Thanks
6 Comments
maliboo
• Visit Site
December 15th, 2006
Ad1.
ScrollBars in V2 components are PITA in skinning. Try to create subclass, that’s inherits from ScrollPane, and overwrite method for creating SBars, with custom method for skinning the SBar compo.
Ad2.
ComboBox::dropdown. Actually dropdown IS a List class instance. So you can call on it rowHeight, or set its cell/itemRenderer.
Administrator
• Visit Site
December 15th, 2006
Ad2: sure it is instance, but you cant access it
or I just dont know how…
Ad1: I will try to look at it…
Administrator
• Visit Site
December 15th, 2006
combobox.dropdown
) I know
maliboo
• Visit Site
December 15th, 2006
ScrollPane::vScroller, ScrollPane::hScroller
Try to override (copy paste with modifications) ScrollView::setScrollProperties and skin your scrollbars in:
hScroller = ScrollBar(createObject("HScrollBar", "hSB", 1001));David
• Visit Site
Október 3rd, 2008
Hey did you sort it out… I really need a fix to make the combo box scroller wider
Thanks
David
Franto
• Visit Site
Október 6th, 2008
Hey David, not really, and I don’t need it anymore, but I can ask someone, if you still need it
Sorry, comments for this entry are closed at this time.