NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

按钮设置成透明

已解决!
转到解答
在前面板中按钮如何设置成透明的,就是做一个精美的按钮需要先把按钮设置成透明的。谢谢帮助!
1 条消息(共 10 条)
11,481 次查看
解答
接受人 sanchuaner

To set transparent, use the Set Color tool found under the Tools palette.

 

Right-click the target object, and select 'T' to set transparent.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
2 条消息(共 10 条)
11,480 次查看
谢谢,已经可以弄成透明色了。再有一个就是自定义按钮的形状要怎么样实现呢? 谢谢。
0 项奖励
3 条消息(共 10 条)
11,463 次查看

Basically, you will create, at least, two (2) images; "False" image and "True" image.

  1. Create a new Custom Control (button)
  2. Copy "False" image to clipboard
  3. Right-click the button > Import Picture... select "False"; this will import the "False" image to the button's false state.
  4. Copy "True" image to clipboard
  5. Right-click the button > Import Picture... select "True"; this will import the "True" image to the button's true state.
  6. Save the customised control
Now, you have the button that displayed as your created image.
Hope above make sense to you 😉
Message Edited by ian fung on 08-12-2009 11:12 AM
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
4 条消息(共 10 条)
11,445 次查看
谢谢,这部分功能已经可以实现。就是还有点不清楚:按钮在LABVIEW中的形状是固定的,我给它加了不同的图片,可是形状还是变不了,想根据自己的喜好改变形状要怎么做呢?  还有界面我想做的好看些,比如说背景怎么加上去,在这个背景上有许多按钮,就像手机的菜单一样,那该怎么做呢? 谢谢!
0 项奖励
5 条消息(共 10 条)
11,430 次查看

Hi,

 

Although the customised control may appears square/ rectangle when it is highlighted, Only the image area is click-able... (See attached)

 

As for the background, one way you may consider is to have a picture control to display the background image. Then, place all other customised controls above/ on top of it...

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
6 条消息(共 10 条)
11,394 次查看
非常感谢,功能已经能够实现了。
0 项奖励
7 条消息(共 10 条)
11,345 次查看
如果问题解决了,请发个vi,让大家学习学习
0 项奖励
8 条消息(共 10 条)
11,280 次查看

有一个按钮做好了。

还有个问题,就是我想把按钮放到背景图上却怎么也不行。之前做过可以实现,但是现在又不行了,有点不稳定。 不知为什么,谢谢。

0 项奖励
9 条消息(共 10 条)
11,134 次查看
目前可以把按钮放在背景图上了。 很奇怪的,就是先把按钮放在其他的控件上,然后再放到图上就可以了。 可以实现,但是原因不清楚。 有谁知道是为什么吗?
0 项奖励
10 条消息(共 10 条)
11,108 次查看