如何背景图片添加到德尔福形式 [英] How to add background images to Delphi forms
问题描述
我如何添加背景图片到我的德尔福形式?我添加了一个TImage中,但现在的标签是不可见的多了,我的复选框的文本是在一个蓝色的盒子(蓝色的背景颜色我选择)。这个蓝色不看背景图像上非常好,隐藏的标签也并不看好。如何解决这些问题呢?
How can I add a background image to my delphi form? I added a TImage, but now the labels aren't visible any more, and the texts of my checkboxes are in a blue "box" (blue is the background color i chose). This blue doesn't look very good on the background image, and the hidden labels also don't look good. How do I fix these problems?
推荐答案
有关标签:确保它们是透明的(在Object Inspector透明属性),而他们是在Z顺序的TImage顶部的控制。要纠正这一点,你可以执行发送到备份命令,在设计模式TImage组件上,它将使所有其他非窗口控件出现在它的上面。
For the labels: make sure that they are transparent (Transparent property in the Object Inspector), and that they are on top of the TImage in the Z-order of controls. To correct this you can execute the "Send to back" command on the TImage component in design mode, it will make all other non-windowed controls appear on top of it.
有关的复选框,我不知道你的情况是什么问题,在Delphi的时候放超过2007年的TImage显示复选框正确透明。也许你使用较早版本的Delphi?如果是的话这将是很好的在这个问题提到这一点。也可以有取决于主题是否是活动不同的行为。同样,很难说没有进一步的信息。
For the checkboxes I don't know what the problem in your case is, in Delphi 2007 checkboxes appear properly transparent when put over a TImage. Maybe you use an earlier Delphi version? If so it would be good to mention this in the question. There may also be a different behaviour depending on whether themes are active. Again, hard to say without further information.
这篇关于如何背景图片添加到德尔福形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!