简体   繁体   English

如何在C#中制作Enso风格的应用程序

[英]How can I make a Enso style application in C#

背景应该是透明的,但文字应该不是透明的。

By making an "Enso style" application you mean the Enso launcher? 制作“ Enso风格”应用程序是指Enso启动器?

Here is a screenshot of it: alt text http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg 这是它的屏幕截图: 替代文本http://enscreenshots.softonic.com/s2en/68000/68880/3_ensolauncher03.jpg

I would suggest at looking at the open-source C# Cropper application. 我建议看一下开源C# Cropper应用程序。 He does a similar looking GUI with transparent background. 他使用透明背景制作了外观相似的GUI。 You can open up his project and see how he implements it. 您可以打开他的项目,并查看他如何实施该项目。

alt text http://img352.imageshack.us/img352/726/cropperuijt3.png 替代文字http://img352.imageshack.us/img352/726/cropperuijt3.png

You can set the background color, and transparency key properties to the same color and that will make the background transparent. 您可以将背景颜色和透明度键属性设置为相同的颜色,这将使背景透明。 The rest of the control items will stay non-transparent, as long as they are different colors. 其余的控制项将保持不透明,只要它们是不同的颜色即可。

Enso is open source too. Enso也是开源的。

You can directly peek at they source code. 您可以直接查看它们的源代码。

http://code.google.com/p/enso/ http://code.google.com/p/enso/

Let us know how they do it when you find out!. 让我们知道他们如何做到的!

UPDATE 更新

It looks like they use something called Cairo. 看来他们使用了一种叫做开罗的东西。 If you can link it from C# you're done. 如果您可以从C#进行链接,那么您就完成了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM