当前位置:网站首页>零基础学习CANoe Panel(6)—— 开关/显示控件(Switch/Indicator)
零基础学习CANoe Panel(6)—— 开关/显示控件(Switch/Indicator)
2022-07-24 10:41:00 【蚂蚁小兵】
- 我是蚂蚁小兵,专注于车载诊断领域,尤其擅长于对CANoe工具的使用
- 寻找组织 ,答疑解惑,摸鱼聊天,博客源码,点击加入【相亲相爱一家人】
- 零基础学习CANoe Panel设计目录汇总,点击跳转
前言
- 在
Panel设计中,Switch/Indicator是最常用的控件,兼容button控件 ,既可以作为开关,也可以作为显示,功能很多,下面就通过示例逐个讲解下属性设置。 - 演示软硬件环境 Win11 x64 ; CANoe 11 SP2 x64


图片文件(Image File)
1️⃣ 如下图,这些控件都是Switch/Indicator控件,之所以在panel中大量使用这个控件,就是因为Image File属性,可以让这个控件表现出物理性质,一目了然;
Switch/Indicator 控件的电平变化
- 1️⃣
- 下面的第一个控件绑定的位图就3种颜色,对应这2个值,所以我 不断的点击鼠标左键,Test_1变量的值就在0和1之间变换
- 下面的第二个控件绑定的位图有6种颜色,对应这5个值,所以我 不断的点击鼠标左键,Test_2变量的值就在0和4之间变换,到了4之后,再点击,就回到了0.
- 如果我通过Data窗口设置Test_2的值大于4呢,比如5,那么第二个控件的颜色保持不变,因为超出了位图能表示的值了。


2️⃣ 设置成类似于Button 控件的自恢复类型
- 如下图,将Test_1的Button Behavior属性打成 True,就和Button一样了,自恢复.


Switch/Indicator 控件的按键行为
- 正常情况下, 鼠标的行为我们选择Only Left ,即只有鼠标左键起作用,如果设置成鼠标
Left And Right呢
设置成鼠标
Left And Right,信号行为:右键+1,左键-1;

总结


- 要有最朴素的生活,最遥远的梦想,即使明天天寒地冻,路遥马亡!
- 如果这篇博客对你有帮助,请 “点赞” “评论”“收藏”一键三连 哦!码字不易,大家的支持就是我坚持下去的动力。
边栏推荐
- Real time weather API
- Volcanic engine: open ByteDance, the same AI infrastructure, a system to solve multiple training tasks
- QT create application tray and related functions
- Chapter V Modification implementation (impl) class
- Hongmeng's first note
- MySQL - update data records in tables
- Ffmpeg splash screen solution (modify the source code and discard incomplete frames)
- Image processing: rgb565 to rgb888
- CMS vulnerability recurrence - ultra vires vulnerability
- binlog、iptables防止nmap扫描、xtrabackup全量+增量备份以及redlog和binlog两者的关系
猜你喜欢

PC博物馆(2) 1972年 HP-9830A

火山引擎:开放字节跳动同款AI基建,一套系统解决多重训练任务
![[AHK] AutoHotKey tutorial ①](/img/70/20f2e19e3e268ffe2f1e2956719c09.png)
[AHK] AutoHotKey tutorial ①

MySQL - 索引的隐藏和删除

After the QT program minimizes the tray, a msgbox pops up. Click OK and the program exits. The problem is solved
![When to use obj['attribute name'] for the attribute name of an object](/img/ec/cd265444b60d2d2da646ae64aab267.png)
When to use obj['attribute name'] for the attribute name of an object

Arduino + AD9833 波形发生器

Sentinel 流量控制快速入门

PC Museum (1) 1970 datapoint 2000

机器学习小试(11)验证码识别测试-使用Qt与Tensorflow2进行深度学习实验
随机推荐
binlog、iptables防止nmap扫描、xtrabackup全量+增量备份以及redlog和binlog两者的关系
[C Primer Plus Chapter 3 after class programming questions]
ECCV 2022 | Tsinghua proposes the first transformer to embed spectral sparsity
[dish of learning notes, dog learning C] minesweeping game
实时天气API
Sentinel implements the persistence of pull pattern rules
JSON tutorial [easy to understand]
Set up mail server with dynamic ip+mdaemon
OSPF includes special area experiments, mGRE construction and re release
数组元素移除问题
NiO knowledge points
[recommendation system] the classic technical architecture of the data flow of the recommendation system + the most complete evolution map of the top 10 deep learning CTR models of Microsoft, Alibaba,
How to build a node development environment efficiently
划分数据1
分布式事务处理方案大 PK!
[personal summary] end of July 17, 2022
Google cooperates with colleges and universities to develop a general model, proteogan, which can design and generate proteins with new functions
Zoj1137+ operation 1 -- May 28, 2022
Erlang studies abroad
MySQL - hiding and deleting indexes

