当前位置:网站首页>基于LabVIEW实现的几种滚动字幕
基于LabVIEW实现的几种滚动字幕
2020-11-09 07:30:00 【osc_jklrr90y】
学了小技巧还是要CSDN一下,以免下次需要的时候找不到。。
(1)基于字符串数组和字符串控件的向下滚动字幕
基本思路是依次从数组中取每一个字符串送显示;滚动是用循环次数与数组行数的大小进行求余数运算获得循环的索引值。
(2)基于长字符串和字符串控件的滚动字幕
基本思路是采用截取字符串函数,每次偏移量加2,长度不变即可。
(3)基于字符串控件整体移动的横向钟摆型滚动字幕
这是对应的字符串长度小于显示区宽度的情况。
思路:字符串作为一个整体,其左侧在显示区的位置是可以通过属性节点进行写入的。改变它,整个字符串就在移动。设计模式采用基本状态机模式。
(4)基于数值显示控件滑动杆和字符串图片的横向滚动字幕
思路:在自定义控件中,用要显示的图片替换滑动杆上的滑块图片。依次改变要显示的数值的大小就可以让滑块滚动起来。
滚动字幕,前面板截图能做成执行动图就好了,还不会做;其中的字号大小差别比较大,浏览起来可能显得没有章法。程序较为简单,就不附下载地址了。这么点东西,竟然写了1个多小时吗?什么效率这是,打工人!哪个算是默认标题,存不得发不得?
版权声明
本文为[osc_jklrr90y]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4415966/blog/4708508
边栏推荐
- 上线1周,B.Protocal已有7000ETH资产!
- CSP-S 2020 游记
- Teacher Liang's small class
- Introduction skills of big data software learning
- Chapter 5 programming
- Android emulator error: x86 emulation currently requires hardware acceleration solution
- Why don't we use graphql? - Wundergraph
- 数据库设计:范式与反范式
- Introduction to nmon
- Copy on write collection -- copyonwritearraylist
猜你喜欢
常见特征金字塔网络FPN及变体
STS安装
Database design: paradigms and anti paradigms
教你如何 分析 Android ANR 问题
基于链表的有界阻塞队列 —— LinkedBlockingQueue
2.计算机硬件简介
A brief introduction of C code to open or close the firewall example
SaaS: another manifestation of platform commercialization capability
程序员都应该知道的URI,一文帮你全面了解
App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
随机推荐
23 pictures, take you to the recommended system
分库分表的几种常见玩法及如何解决跨库查询等问题
How to get started with rabbitmq
VIM Introduction Manual, (vs Code)
C / C + + Programming Notes: pointer! Understand pointer from memory, let you understand pointer completely
LeetCode-11:盛水最多的容器
Python features and building environment
Esockettimeout solution in request in nodejs
上线1周,B.Protocal已有7000ETH资产!
API部分的知识点复习
Salesforce connect & external object
Chapter 5 programming
20201108编程练习——练习3
VIM 入门手册, (VS Code)
Depth first search and breadth first search
几行代码轻松实现跨系统传递 traceId,再也不用担心对不上日志了!
老大问我:“建表为啥还设置个自增 id ?用流水号当主键不正好么?”
SAP S/4HANA 2020安装实录
GDI 及OPENGL的区别
Android emulator error: x86 emulation currently requires hardware acceleration solution