当前位置:网站首页>Zero basic learning canoe panel (4) -- button
Zero basic learning canoe panel (4) -- button
2022-07-24 10:46:00 【Ant soldier】
- I am a Ant soldier , Focus on the field of on-board diagnosis , Especially good at CANoe Tool use
- Looking for organizations , Answer questions and solve doubts , Fishing and chatting , Blog source code , Click to add 【 Love each other and family 】
- Zero base learning CANoe Panel Summary of design catalogue , Click the jump
Preface
- This section explains Basic but most commonly used controls —— Button (
Button) - Demonstrate hardware and software environment Win11 x64 ; CANoe 11 SP2 x64

Catalog

Button (Button )
- 1️⃣ Button Is a control that can trigger a specified action .

Button Level signal of control
1️⃣ Here's the picture , Create a new panel , name ToolBox_button , And set the Association symbol System variables Test_3,

2️⃣ Run CANoe , Click on it. Button System variables Test_3 The value is set to 1, Just don't let go , The value remains the same , Then let go ,Test_3 The value of is set to 0
- So Button Control is self restoring
- So in us CAPL Script response Button Pay attention to adding non-zero judgment to your code , Otherwise, it will trigger repeatedly

on sysvar Panel::Test_3
{
if(@this)
{
//do somethng
}
}
name and text Attribute distinction
1️⃣
name : Is the identification of the control ID, yes CAPL Parameters recognized when the script controls the control
text: Description of the control , Display information during interaction ,Font Property is set for Text Of
All the following controls will no longer explain this

button How to design fancy
1️⃣ By default Use Windows Style The options are True , Background Color The attribute is gray and not optional , In this way button It's not very beautiful

2️⃣ take Use Windows Style The option is set to False, Background Color Attributes can be used

3️⃣ Attention, everyone , Default Button Style The property of is Standard Of , There are still many attribute numbers that are not selectable , So we can take Button Style choice CostomFlat Pattern , So we can set button Of Border color (Border Color) and Mouse hover color (Hover Color) 了 .

- Hovering the mouse changes the color


summary


- Have the most simple life , The furthest dream , Even if it's freezing tomorrow , Lu Yao's horse died !
- If this blog is helpful to you , please “ give the thumbs-up ” “ Comment on ”“ Collection ” One key, three links Oh ! It's not easy to code words , Everyone's support is my driving force to stick to it .
边栏推荐
- Golang Li Kou leetcode 494. goals and
- Redis cache settings, similar to putifabsent function
- Daily three questions 7.22
- MySQL - 唯一索引
- Cross platform audio playback Library
- Pytorch common tricks summary
- Flink 运行架构详解
- Golang migrate is easy to use
- QT application prevents multiple opening, that is, single instance operation
- JSON tutorial [easy to understand]
猜你喜欢
![[micro service] eureka+ribbon realizes registration center and load balancing](/img/a7/57e28ce146270524774fd5d3304d96.png)
[micro service] eureka+ribbon realizes registration center and load balancing

IEPE vibration sensor synchronous signal acquisition card /icp synchronous data network acquisition module

OSPF含特殊区域实验,MGRE构建和重发布

New:Bryntum Grid 5.1.0 Crack
![[about Modelsim simulation] design and Simulation of 4-bit counter](/img/62/f8f7b634684fcffe3bf5f8de073490.png)
[about Modelsim simulation] design and Simulation of 4-bit counter

Sentinel 实现 pull 模式规则持久化

Figure model 2-2022-5-13

Array element removal problem

Qt应用程序防止多开,即单例运行

Constant pointer, pointer constant
随机推荐
Disk storage chain B-tree and b+ tree
MySQL - update data records in tables
[AHK] AutoHotKey tutorial ①
PC Museum (2) 1972 hp-9830a
Set up mail server with dynamic ip+mdaemon
MySQL - multi column index
[C Primer Plus Chapter 3 after class programming questions]
Programmers can't JVM? Ashes Engineer: all waiting to be eliminated! This is a must skill!
Sentinel 三种流控效果
Adobe Substance 3D Designer 2021软件安装包下载及安装教程
Ffmpeg splash screen solution (modify the source code and discard incomplete frames)
Nirvana rebirth! Byte Daniel recommends a large distributed manual, and the Phoenix architecture makes you become a God in fire
Protocol Bible - talk about ports and quads
谷歌联合高校研发通用模型ProteoGAN,可设计生成具有新功能的蛋白质
Sentinel implements the persistence of pull pattern rules
Daily three questions 7.22
Distributed transaction processing scheme big PK!
[FPGA]: IP core - multiplier
Image processing: rgb565 to rgb888
分布式事务处理方案大 PK!
