V-REP教程(五)UI

实现 Custom UI example

这里写图片描述
Browse through the tabs below to explore all the widgets that can be created with the plugin. 通过浏览(tabs),探索可以用插件创建的所有小部件。

属性(attributes)分析举例:
1.
<ui>

enable 是默认值true
title 是默认值
resizable 可以变大小 resizable = “true”
closeable 可以关闭,closeable = “true”

2 .<button>
text = “Buttons”
autoRepeat 按下时,自动重复启动,默认
onclick 按下时的行为,不定义

具体请看:CustomUI Plugin - UI XML Syntax
完整代码:
这里写图片描述

A和Y的变化应该通过设置id实现

结果:
这里写图片描述

补充与延展

1.表格(form)布局
效果:可以设置一个按键后跟随一个输入框
这里写图片描述
2.组键介绍
checkbox 复选框 上图x,y,z
combobox 下拉列表框
edit 输入
hslider 水平滑块
image 插入图片
label 标签 上图文字部分
plot 插入图表
radiobutton 单选框
spinbox 这里写图片描述
vslider 垂直滑块

猜你喜欢

转载自blog.csdn.net/danieldingshengli/article/details/80588523
今日推荐