简体   繁体   English

如何在Flex 3中减小图块列表的水平滚动条的厚度

[英]How to reduce the thickness of a horizontal scroll bar of a tile list in flex 3

I am having a Horizontal tile list, i want to customize the style of the horizontal scroll bar of this tile list. 我有一个水平图块列表,我想自定义此图块列表的水平滚动条样式。 I want to reduce the thickness of the scroll bar so that it looks as a thick line or something. 我想减小滚动条的粗细,使其看起来像一条粗线之类的东西。 Even i dont want the arrows at the either side of the scroll bar. 即使我也不希望滚动条两侧的箭头。 How can i do this? 我怎样才能做到这一点?

In flex 3 it is possible to skin the scrollbar in CSS: 在flex 3中,可以在CSS中设置滚动条外观:

mx|ScrollBar 
{
    up-arrow-skin: ClassReference(null); //removes up arrow
    down-arrow-skin: ClassReference(null); // removes down arrow
    trackSkin: Embed(source="assets/ScrollBarTrack.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
    thumbUpSkin: Embed(source="assets/ScrollBarThumb_up.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
    thumbOverSkin: Embed(source="assets/ScrollBarThumb_over.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
    thumbDownSkin: Embed(source="assets/ScrollBarThumb_down.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16");
}

In flex 4 you would want to write a custom skin. 在flex 4中,您需要编写一个自定义外观。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM