当前位置:首页 > 开发 > 编程语言 > 编程 > 正文

Usage of IncludeInLayout

发表于: 2012-01-19   作者:darrenzhu   来源:转载   浏览:
摘要: Specifies whether the component is included in the layout of the parent container, if true, the object is included in its parent container’s layout. If false, the object is positioned by its parent co
Specifies whether the component is included in the layout of the parent container, if true, the object is included in its parent container’s layout. If false, the object is positioned by its parent container as per its layout rules, but it is ignored for the purpose of computing the position of the next child.

Note: no matter what value you set to the visible and includeInLayout, the component has already created; it is different with components in state, when the state has not been set, the components in the state have not been created, and therefore you cannot access them before changing to that state.
  1) Set visible=false will hide the component, but the components’ position is already calculated , so you will see gaps or space representing that component, should not use this way.
  2) Set Visible=false and includeInLayout=false will not only hide the component but also ignore the space occupied by component, so this is a right and good way to hide a component, similar to the hide tag in html.
  3) Set Visible=true and includeInLayout=false will display the component on stage, but it will override or overlap the space occupied by another existed component, so you should not use this way.

Usage of IncludeInLayout

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号