如何通过属性节点修改Ring的背景颜色? [英] How to modify Ring's background color via property nodes?

查看:231
本文介绍了如何通过属性节点修改Ring的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编辑时分配背景色适用于除系统铃声"以外的所有铃声控件:

Assigning background color at edit time works for all ring controls except "System ring":

我正在尝试使用RingText.BGColor属性节点修改Ring控件的背景颜色,但是它不起作用.不过,它对于数字控件还是有效的:

I am trying to modify the background color of a Ring control using the RingText.BGColor property node, but it doesn't work. It does work for a Numeric control though:

怎么了?

推荐答案

如@shmicah所述,菜单环不支持动态设置bgcolor.但是,可以先创建一个文本环,然后将其替换为菜单环(右键单击->替换),以解决"此问题.有趣的是,此方法适用于现代"和银色"菜单环,但不适用于经典菜单.

As explained by @shmicah, menu rings do not support dynamically setting of bgcolor. However, this can be "solved" by first creating a text ring and then replacing it (right click -> replace) with a menu ring. Interestingly, this method works for the "modern" and "silver" menu rings but not for the classic.

将文本环替换为菜单环后,原始代码按原样工作.

After replacing the text ring with a menu ring, the original code works as-is.

(LabVIEW 2013)

(LabVIEW 2013)

这篇关于如何通过属性节点修改Ring的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆