簡體   English   中英

如何在Flex 3中減小圖塊列表的水平滾動條的厚度

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

我有一個水平圖塊列表,我想自定義此圖塊列表的水平滾動條樣式。 我想減小滾動條的粗細,使其看起來像一條粗線之類的東西。 即使我也不希望滾動條兩側的箭頭。 我怎樣才能做到這一點?

在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");
}

在flex 4中,您需要編寫一個自定義外觀。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM