tab_button_group_t

概述

image

标签按钮分组控件。

一个简单的容器,主要用于对标签按钮进行布局和管理。

tab_button_group_t是widget_t的子类控件,
widget_t的函数均适用于tab_button_group_t控件。

在xml中使用”tab_button_group”标签创建标签按钮分组控件。如:

  1. <tab_button_group x="c" y="bottom:10" w="90%" h="30" compact="true" >
  2. <tab_button text="General"/>
  3. <tab_button text="Network" value="true" />
  4. <tab_button text="Security"/>
  5. </tab_button_group>

更多用法请参考:
tab control

可用通过style来设置控件的显示风格,如颜色等等。如:

  1. <tab_button_group>
  2. <style name="default">
  3. <normal/>
  4. </style>
  5. </tab_button_group>

函数

函数名称 说明
tab_button_group_cast 转换tab_button_group对象(供脚本语言使用)。
tab_button_group_create 创建tab_button_group对象

属性

属性名称 类型 说明
compact bool_t 紧凑型排版子控件。

tab_button_group_cast 函数


  • 函数功能:

转换tab_button_group对象(供脚本语言使用)。

  • 函数原型:
  1. widget_t* tab_button_group_cast (widget_t* widget);
  • 参数说明:
参数 类型 说明
返回值 widget_t* tab_button_group对象。
widget widget_t* tab_button_group对象。

tab_button_group_create 函数


  • 函数功能:

创建tab_button_group对象

  • 函数原型:
  1. widget_t* tab_button_group_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h);
  • 参数说明:
参数 类型 说明
返回值 widget_t* 对象。
parent widget_t* 父控件
x xy_t x坐标
y xy_t y坐标
w wh_t 宽度
h wh_t 高度

compact 属性


紧凑型排版子控件。

  • 类型:bool_t
特性 是否支持
可直接读取
可直接修改
可持久化
可脚本化
可在IDE中设置
可在XML中设置
可通过widget_get_prop读取
可通过widget_set_prop修改