Harris Hu Posted May 30, 2024 Report Posted May 30, 2024 (edited) I want to make the front panel transparent according to the background color to remove the unwanted parts. When I set the windows behavior of the VI to floating, the program is OK. But when I set thewindows behavior of the VI to the modal, there is a transparent border, and it is not fully transparent. Is there any good solution? The VI of the test is in the test1.rar file. test1.rarFetching info... Edited May 30, 2024 by Harris Hu Quote
Neil Pate Posted May 30, 2024 Report Posted May 30, 2024 (edited) I have not used that Windows API before. Why don't you just resize the window to as big as the area you want to remain? Edited May 30, 2024 by Neil Pate Quote
Harris Hu Posted May 31, 2024 Author Report Posted May 31, 2024 My front panel doesn't always rule. For example, rounded corners。 Quote
ShaunR Posted May 31, 2024 Report Posted May 31, 2024 (edited) I'm not sure what you mean by "not fully transparent" but if you want to get rid of the border you can do something like this. sr_test1.zipFetching info... Edited May 31, 2024 by ShaunR 1 Quote
xiongxinwei Posted June 3, 2024 Report Posted June 3, 2024 用Windows API指定要透明的颜色就可以了,例如你这个程序可以指定白色部分透明,运行程序的时候界面上就只会看到两个布尔控件。 Quote
Neil Pate Posted June 3, 2024 Report Posted June 3, 2024 We do not have too many Chinese readers on this forum, so you will probably have more success if you try in English Quote
Zou Posted June 5, 2024 Report Posted June 5, 2024 On 6/3/2024 at 5:38 AM, xiongxinwei said: 用Windows API指定要透明的颜色就可以了,例如你这个程序可以指定白色部分透明,运行程序的时候界面上就只会看到两个布尔控件。 Expand 那不正是 Hu 做的吗?问题是边框的颜色不是单一的。 Quote
Harris Hu Posted June 5, 2024 Author Report Posted June 5, 2024 On 5/31/2024 at 9:03 AM, ShaunR said: I'm not sure what you mean by "not fully transparent" but if you want to get rid of the border you can do something like this. sr_test1.zip 32.94 kB · 12 downloads Expand That's very good. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.