首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

[转]NumericStepper平添百分号

2012-09-19 
[转]NumericStepper添加百分号? ?? ?? ?? ???paddingLeft3 paddingTop6? ?? ?? ?? ???paddingRight

[转]NumericStepper添加百分号

  • ? ?? ?? ?? ???paddingLeft="3" paddingTop="6"
  • ? ?? ?? ?? ???paddingRight="6" paddingBottom="3"/>

  • ? ? ? ? <s:Label text="%" verticalAlign="middle" right="3" top="1" bottom="1"??/>
  • .....复制代码textDisplay.right = 14 + 1;
    為了拉開右邊的空白給 % 用
    1. ...
    2. ? ?? ???override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    3. ? ?? ???{
    4. ? ?? ?? ?? ?if (getStyle("borderVisible") == true)
    5. ? ?? ?? ?? ?{
    6. ? ?? ?? ?? ?? ? border.visible = true;
    7. ? ?? ?? ?? ?? ? shadow.visible = true;
    8. ? ?? ?? ?? ?? ? background.left = background.top = background.right = background.bottom = 1;
    9. ? ?? ?? ?? ?? ? textDisplay.left = textDisplay.top = textDisplay.right = textDisplay.bottom = 1;
    10. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? textDisplay.right = 14 + 1;
    11. ? ?? ?? ?? ?}
    12. ? ?? ?? ?? ?else
    13. ? ?? ?? ?? ?{
    14. ? ?? ?? ?? ?? ? border.visible = false;
    15. ? ?? ?? ?? ?? ? shadow.visible = false;
    16. ? ?? ?? ?? ?? ? background.left = background.top = background.right = background.bottom = 0;
    17. ? ?? ?? ?? ?? ? textDisplay.left = textDisplay.top = textDisplay.right = textDisplay.bottom = 0;
    18. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? textDisplay.right = 10;
    19. ? ?? ?? ?? ?}
    20. ? ?? ?? ?? ?
    21. ? ?? ?? ?? ?borderStroke.color = getStyle("borderColor");
    22. ? ?? ?? ?? ?borderStroke.alpha = getStyle("borderAlpha");
    23. ? ?? ?? ?? ?
    24. ? ?? ?? ?? ?super.updateDisplayList(unscaledWidth, unscaledHeight);
    25. ? ?? ???}
    26. ....
    复制代码最後顯示效果像這樣

  • 热点排行