<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>WeStudio技术社区 - 可视化控件</title>
    <link>https://www.wareexpress.com/forum/forum.php?mod=forumdisplay&amp;fid=38</link>
    <description>Latest 20 threads of 可视化控件</description>
    <copyright>Copyright(C) WeStudio技术社区</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 03 Apr 2026 18:18:03 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.wareexpress.com/forum/static/image/common/logo_88_31.gif</url>
      <title>WeStudio技术社区</title>
      <link>https://www.wareexpress.com/forum/</link>
    </image>
    <item>
      <title>如何获取剩余的用户空间大小？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=7284</link>
      <description><![CDATA[可以通过下面的方法来获取剩余的用户空间大小：]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Fri, 10 Jan 2025 02:42:47 +0000</pubDate>
    </item>
    <item>
      <title>如何用单片机向大器智成的LCD上的单行输入文本框发数据</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=7006</link>
      <description><![CDATA[如何用单片机向大器智成的LCD上的单行输入文本框发数据，用什么协议发，协议能否公开，可以直接用CPU控制文本框的属性吗？]]></description>
      <category>可视化控件</category>
      <author>微信用户</author>
      <pubDate>Tue, 10 Jan 2023 05:26:51 +0000</pubDate>
    </item>
    <item>
      <title>怎么绘制流动管道UI？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6986</link>
      <description><![CDATA[如题，请问如何绘制HMI中常见的管道以及管道中液体流动效果的UI？]]></description>
      <category>可视化控件</category>
      <author>oQuQu</author>
      <pubDate>Wed, 04 Jan 2023 15:22:42 +0000</pubDate>
    </item>
    <item>
      <title>userEvent的使用方法</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6913</link>
      <description><![CDATA[在mudbus的onReceive中执行service.ctl.emitEvent(\'ReadFinish\', 0);
在另外一个页面中接收ui.Main_ContinuousMode.onUserEvent = function(name, value){
    util.console.log(\'onUserEvent:\'+name +\' value:\'+value);}；
提示 not found any receiver for event: Rea ...]]></description>
      <category>可视化控件</category>
      <author>Dinger</author>
      <pubDate>Mon, 17 Oct 2022 08:53:56 +0000</pubDate>
    </item>
    <item>
      <title>如何解决表格控件更新条目特别慢?</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6631</link>
      <description><![CDATA[有用户反馈表格控件使用setItem方法更新多行数据时特别慢，模拟的时候有一个警告弹窗（构建模式为debug才有此弹窗），如下：


我们来看一下用户的测试工程，主界面有一个表格控件，属性设置的“行数”为240，“列数”为5，\&quot;写列\&quot;按钮的动作脚本用 for循环来更新240行数 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Mon, 18 Jul 2022 07:46:06 +0000</pubDate>
    </item>
    <item>
      <title>4G模块怎么查看信号强度？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6617</link>
      <description><![CDATA[在WeStudio中4G模块对应的是device.net.mobile控件，可以通过发送AT+CSQ命令来查询当前的信号强度。
1、在Pi-Pro主板上安装好4G模块及天线

2、新建一个工程， 在主界面上拖入一个按钮，在按钮的动作脚本里面发送AT命令，如：



3、在mobile控件接收事件方法中读取mode ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Thu, 23 Jun 2022 09:17:16 +0000</pubDate>
    </item>
    <item>
      <title>为什么RTC时间不能设置超过2038-1-19日？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6604</link>
      <description><![CDATA[这个是由于32位Linux内核使用了有符号time_t，会在2038-1-19 3:14:07 (UTC)溢出回1970-01-01，64位Linux是没有2038问题的（除了文件系统）。Linux内核5.6版本以后已经解决此问题。]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Wed, 01 Jun 2022 01:06:50 +0000</pubDate>
    </item>
    <item>
      <title>界面-form</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6596</link>
      <description><![CDATA[界面-form的坐标x,y读取不到]]></description>
      <category>可视化控件</category>
      <author>bobo</author>
      <pubDate>Tue, 29 Mar 2022 04:16:29 +0000</pubDate>
    </item>
    <item>
      <title>关于升级WeStudio 1.5.3后，单行文本输入框只能输入一个0</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6417</link>
      <description><![CDATA[有用户反馈，从V1.5.2升级到V1.5.3后，界面中的单行文本输入框设置了“只能输入数字”后的行为跟之前版本不一致，第1个数字为0时，没法连续输入6个0
V1.5.3版本优化了单行文本输入框的整数或浮点数的输入，勾选“只能输入数字”属性后，第1个数字为0时，不允许接着输入 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Tue, 08 Jun 2021 07:21:51 +0000</pubDate>
    </item>
    <item>
      <title>为什么modbus控件返回连接超时？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=6416</link>
      <description><![CDATA[在使用modbus控件时，发现读写超时(错误号 110)，有可能是什么原因？
日志输出：
ui.main.modbus: onError: 110 - Connection timed out, functionCode: 0x3





1、检查从机是否已经挂在485总线上

2、检查主机的波特率设置是否跟从机的一致


3、代码中是否正确设置 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Mon, 07 Jun 2021 10:34:57 +0000</pubDate>
    </item>
    <item>
      <title>单行/多行文本输入框如何不显示软键盘？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=726</link>
      <description><![CDATA[有些情况下，我们不希望文本输入框能通过软键盘修改内容，而又不想设置它为只读，这时我们可以通过设置文本输入框的“默认输入法”属性为None即可。]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Tue, 19 Jan 2021 10:51:14 +0000</pubDate>
    </item>
    <item>
      <title>如何让单行/多行文本输入框获得焦点？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=725</link>
      <description><![CDATA[可以界面的onLoad方法中，调用文本框的setFocus()方法，如：ui.main.singleLineInput.setFocus();]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Tue, 19 Jan 2021 10:46:25 +0000</pubDate>
    </item>
    <item>
      <title>单行输入框(SingleLineInput)如何只让输入小于64的数？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=58</link>
      <description><![CDATA[如何限制单行输入框(SingleLineInput)只输入小于64的数呢？

如前面我们帖子介绍的如何只让输入数字或者16进制数一样，我们还是可以利用“验证器”来实现。

验证器内输入正则表达式  \&quot;^[0-9]$|^[0-5][0-9]$|^6[0-3]$\&quot;
表达式的意思是0~9或者00~59或者60~63



如果我们 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Wed, 11 Nov 2020 04:08:00 +0000</pubDate>
    </item>
    <item>
      <title>单行/多行文本输入的内容怎么不随语言切换而改变？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=44</link>
      <description><![CDATA[1、我们工程里面设置了两种语言(default, Language1)，初始情况下，文本输入框设置了默认值两种语言下都是10


2、模拟运行一下，当前语言是default, 显示的是10，然后我们修改输入框的内容为20


3、模拟器中我们点 \&quot;Language1\&quot;按钮，切换语言到 Language1，我们发现， ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Wed, 19 Aug 2020 04:07:19 +0000</pubDate>
    </item>
    <item>
      <title>I2C控件问题</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=33</link>
      <description><![CDATA[在I2C控件例程中是以24C01为例进行操作的，此EEPROM仅需单字节寄存器地址即可操作，但现在实际项目使用的是24C32或者更大容量的存储，那么问题来了，自带控件如何读写这类16位或者更高位数的I2C接口器件？

下边附上读取操作的逻辑图：


 ...]]></description>
      <category>可视化控件</category>
      <author>ALEX</author>
      <pubDate>Mon, 29 Jun 2020 07:06:55 +0000</pubDate>
    </item>
    <item>
      <title>如何实现按钮高亮选中？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=20</link>
      <description><![CDATA[先上图，如何实现下面的这个选中效果？

在之前的版本上，要实现该功能，我们只能在动作脚本中一个一个按钮去设置它们的高亮或者不高亮的颜色，脚本写起来特别麻烦，在新版本1.3.1中我们给文本按钮增加了高亮互斥的功能，下面我们就来对比下效果吧

1、选中左边一列的所 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Wed, 20 May 2020 03:09:51 +0000</pubDate>
    </item>
    <item>
      <title>1分钟学会通过控件读写I2C设备</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=18</link>
      <description><![CDATA[由于ExpOS将硬件都抽象成可视化控件，对类似I2C这样的硬件设备，操作极其简单：

- 在studio中点击device-&gt;i2c控件，在onDetect(addr)事件(当上电检测到i2c设备时，该函数自动执行)中输入代码初始化i2c设备，类似device.i2c.write(0x55, 0x80, 0xaa)， 其中0x55为i2c设 ...]]></description>
      <category>可视化控件</category>
      <author>w100</author>
      <pubDate>Fri, 15 May 2020 19:01:40 +0000</pubDate>
    </item>
    <item>
      <title>单行输入框(SingleLineInput)如何只输入16进制数？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=2</link>
      <description><![CDATA[可以通过属性”验证器“来实现，修改”验证器“的值为 \&quot;[0-9a-fA-F\\s]+$\&quot;，表示只能输入0-9, a-f, A-F，空格


因为串口控件支持这样的写入：device.com0.write(\'11 22 33 aa bb cc\'); 所以如果要将该输入框中的以空格分隔的16进制数串输出到串口，可以使用下面的代码
u ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Thu, 10 Oct 2019 04:47:51 +0000</pubDate>
    </item>
    <item>
      <title>单行输入框（singlelineinput）怎么只让输入数字和点和减号？</title>
      <link>https://www.wareexpress.com/forum/forum.php?mod=viewthread&amp;tid=1</link>
      <description><![CDATA[1. 鼠标选中要修改的单行输入框控件
2. 在右边的属性面板中勾选“只能输入数字”，此时“验证器”属性的值为正则表达式 \&quot;[0-9]+$\&quot;, 表示的意思是只能输入0-9之间的字符



3. 把”只能输入数字“勾选去掉，在”验证器“属性中输入 \&quot;[0-9.-]+$\&quot;, 表示的意思是只能输入0-9 ...]]></description>
      <category>可视化控件</category>
      <author>hixon</author>
      <pubDate>Thu, 10 Oct 2019 02:09:26 +0000</pubDate>
    </item>
  </channel>
</rss>