当前位置:网站首页>LabVIEW loads and uses custom symbols in tree control projects
LabVIEW loads and uses custom symbols in tree control projects
2022-07-28 03:37:00 【LabVIEW development】
LabVIEW Load and use custom symbols in tree control projects
Found a tree control method for loading custom symbols located next to tree control items . Tried many ways to use it, but encountered problems in displaying custom symbols . How the properties and methods of these tree controls work ?
Use the following methods to add symbols to tree controls , Picture or picture . Attached VI Provides an example of using tree custom symbols .TraverseTreeSetCustomSymbolsLLB By using Custom Item Symbols:Set to Custom Symbol Array Method adds many symbols to the tree control .Tree Image VI Use Custom Item Symbols:Set toCustom Symbol Method to add a separate symbol to the tree control .

edit
Add picture comments , No more than 140 word ( Optional )
LabVIEW A series of built-in symbols are provided for users . Use Custom Item Symbols:Set to Custom Symbol or CustomItem Symbols:Set to Custom Symbol Array Method to add one or more custom symbols to the symbol array . Use Read BMP File, Read JPEG File, Read PNG File, or Picture to Pixmap VI Read the image file for customized symbols from the disk .
Use Edit TreeItems:Add Item Method to add an item to the tree control . You can also truncate an existing project .
The new obtained in the second step TAG Connect to Active Item:Tag Property to specify the current activity TAG.
Index to... By connecting the symbols specified in the first step Active Item:Symbol Index Property to specify which symbol is used by the current active project .
By connecting a TRUE It's worth it Visible Items:Symbols Visible Property to ensure that the symbol is visible . This attribute defaults to true , So this step is usually unnecessary .
Built in symbol array
LabVIEW The index number provided is 1-39 Of 40 Default symbols . Indexes 0 Is an empty symbol . Cannot load a custom symbol to the index 0 Because the index is kept as an empty symbol . The maximum index number that can be set is 32767, Therefore, the maximum array size that can be created is 32768.
Use CustomItem Symbols Method
If you use CustomItem Symbols:Set to Custom Symbol Method ,LabVIEW You will be prompted to give the index and the symbol itself . If you specify a location at 1 To 39 Index values between ,LabVIEW The specified custom symbol will be used to override its built-in symbol . If you want to keep the built-in symbol in its original state , Please add symbols , Specify greater than or equal to... For custom symbols 40 The index of the value .
If you use CustomItem Symbols:Set to Custom Symbol Array Method ,LabVIEW You will be prompted to give an array of symbols . The specified array will overwrite all index values from 0 Starting symbol . However ,LabVIEW The index value specified will be ignored as 0 Pictures of the . If you want to keep the built-in symbols when adding an array of symbols , Please create one with 40 An array of constant images of elements , Each of these elements is an empty image . Connect the array to Custom Item Symbols:Set to Custom Symbol Array Method to the custom symbol array .LabVIEW All empty images will be ignored , Make the front 40 Elements remain in their original state , And the index is 40 Start by adding the first custom symbol .
If some built-in symbols are covered , By using Custom Item Symbols:Revert to Built In Symbol perhaps Custom Item Symbols:Revert All to Built In Symbols Method to restore a single built-in symbol and restore all built-in symbols respectively .
You can only use CustomItem Symbols:Get Symbol and Custom Item Symbols:Get SymbolArray Method to retrieve custom symbols . If the index is 1 to 40 Symbols of use these methods , Then the method will only return the corresponding image for those customized items that cover the built-in symbols .
LabVIEW、LabVIEW Development 、LabVIEW Programming 、LabVIEW Program
Examples and information mentioned above , Both in word In the attachment in , Click to download . Learn more , Contact us .
边栏推荐
- Use of custom annotations
- 20220727 use the Bluetooth module hc-05 of Huicheng technology to pair mobile phones for Bluetooth serial port demonstration
- 贪心——45. 跳跃游戏 II
- 如何解决mysql深分页问题
- ASEMI整流桥GBPC3510在直流有刷电机中的妙用
- Illustrated: detailed explanation of JVM memory layout
- 【OPENVX】对象基本使用之vx_convolution
- 如何卸载干净zabbix服务?(超详细)
- [R language] environment specifies to delete RM function
- Redis基本操作
猜你喜欢

How to arrange PCB screen printing? Please check this manual!

如何解决mysql深分页问题

AI首席架构师12-AICA-百度OCR垂类规模化落地实践

C language to achieve a dynamic version of the address book

Analysis of redis network model
D2DEngine食用教程(4)———绘制文本

2022 summary of the latest Android handler related interview questions

Outlook 教程,如何在 Outlook 中使用颜色类别和提醒?

4天Excel实战训练营,0.01元特惠仅三天,赠200套学习资料包

Collection | 0 basic open source data visualization platform flyfish large screen development guide
随机推荐
贪心——55. 跳跃游戏
Asemi rectifier bridge gbpc5010, gbpc5010 parameters, gbpc5010 size
什么是Tor?Tor浏览器更新有什么用?
An article grasps the calculation and processing of date data in PostgreSQL
贪心——53. 最大子数组和
Digital economy has become the biggest attraction
Qt:QMessageBox消息框、自定义信号和槽
TypeError: ufunc ‘bitwise_and‘ not supported for the input types, and the inputs could not be safely
如何解决mysql深分页问题
AIRIOT答疑第6期|如何使用二次开发引擎?
同时导出多个excel,并且一个excel中包含多个sheet
贪心——45. 跳跃游戏 II
53. Maximum subarray maximum subarray sum
MangoPapa 的实用小脚本(目录篇)
ThreadLocal usage scenario
Weekly recommended short video: how to correctly understand the word "lean"?
Golang gets the tag of the loop nested structure
Tensorboard usage record
【OPENVX】对象基本使用之vx_lut
MySQL事务的ACID特性及并发问题实例分析