图片未显示在TSpeedButton中 [英] Image not showing in TSpeedButton

查看:84
本文介绍了图片未显示在TSpeedButton中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Embarcadero C ++ Builder。我正在使用 TSpeedButton 组件和 .bmp 图像。
不管我尝试哪种格式,IDE中的一切看起来都很不错,但是当我编译并生成 .exe 文件然后启动应用程序时,没有图片。 TSpeedButton 上带有白色小方块的文本。我已经尝试过 .png .jpg .bmp .ico 格式。我的问题有解决方案吗?。

I'm working with Embarcadero C++Builder. I'm using the TSpeedButton component with a .bmp image. No matter what format I try, everything looks great in the IDE, but when I compile and generate the .exe file and then start the application, there are no images. There is the text with a small white square on the TSpeedButton. I have tried the .png, .jpg, .bmp, .ico formats. Is there any solution to my issue?.

推荐答案

我找到了我的问题的解决方案。这只是Windows 10默认情况下应用的兼容模式的问题,我只是禁用了在兼容模式Win XP SP2下运行应用程序,然后没有显示问题。

I have find the solution of my issue. it was just a problem of compatibility mode applied by default by windows 10. I have just disabled the running of the application under compatibility mode Win XP SP2 and then no showing issue.

感谢您的支持。

这篇关于图片未显示在TSpeedButton中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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