DELPHI - How to change a TButton background color in a VCL Form Application?

丶灬走出姿态 提交于 2019-12-11 13:07:46

问题


In my Delphi VCL Form Application I have to change the background color of a TButton. Is there a way to apply this change without using a third-party components?

Thanks.


回答1:


You can't change the color of a TButton component directly, instead you must use a third-party component or owner draw the button (BS_OWNERDRAW).



来源:https://stackoverflow.com/questions/15664495/delphi-how-to-change-a-tbutton-background-color-in-a-vcl-form-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!