zoukankan      html  css  js  c++  java
  • lazarus LAMW开发安卓APP时,GUI如何布局?

    lazarus LAMW开发安卓APP时,GUI如何布局?

    • 可视组件请配置这些属性:
    •   Anchor
    •   PosRelativeToParent
    •   PosRelativeToAnchor
    •   LayoutParamHeight
    •   LayoutParamWhidth
      • 1 - 在LAMW Form上放置一个jTextView组件并设置属性:
         PosRelativeToParent
             rpCenterHorizontal = [True]
             rpTop = [True]
          Text = GUI Design WYSIWYG   
             
          (Because only Position Relative to Parent(form) is need to localize jTextView1)
      • 2 - 在LAMW Form上放置一个jEditText组件并设置属性:
          Anchor = jTextView1
          LayoutParamWidth = lpTwoThirdOfParent
          PosRelativeToAnchor
             raBelow = [True]
          PosRelativeToParent
             rpCenterHorizontal = [True]
          Text = Ok
        
          (Because we want it to be bellow the jTextView1)
      • 3 - 将jButton组件放在 LAMW 窗体上并设置属性:
          Anchor = jEditText1
          LayoutParamWidth = lpTwoThirdOfParent 
          PosRelativeToAnchor
             raBelow = [True]
          PosRelativeToParent
             rpCenterHorizontal = [True]
          Text = Sample    
        
          (Because we want it to be bellow the jEditText1)
      • 4 - 提示:

                             要更改可视组件的宽度/高度,应配置LayoutParamWhidth和LayoutParamHeight!

  • 相关阅读:
    C#类型转换
    C#运算符
    SQL视图与触发器
    存储过程
    SQL 变量
    SQL 经典练习题
    字符串函数,数据类型转换,链接查询,纵向查询
    常用的 SQL 函数
    习题整理(1)
    子查询的部分内容
  • 原文地址:https://www.cnblogs.com/qiufeng2014/p/15756328.html
Copyright © 2011-2022 走看看