简体   繁体   English

Delphi7如何更改按钮的颜色及其标题?

[英]Delphi7 How do I change the color of a button and its caption?

I would like to change the colour of a button, for example make it from grey --> yellow. 我想更改按钮的颜色,例如从灰色->黄色。 Do you know if this is possible? 你知道这有可能吗? I didn't see any colour option in the button's property, but there must be a way to change its colour. 我没有在按钮的属性中看到任何颜色选项,但是必须有一种更改其颜色的方法。

If it is not possible, please tell me if and how i can change the colour of button's caption. 如果不可能,请告诉我是否以及如何更改按钮标题的颜色。 I have selected different colours, but it still hasn't changed, it remains black, perhaps i am doing something wrong. 我选择了不同的颜色,但它仍然没有改变,仍然是黑色,也许我做错了。

I am using delphi7 btw 我正在使用delphi7 btw

要更改按钮的字体颜色,请在project-> option-> application-> Appearance中为项目使用自定义样式,然后在button styleelements属性中禁用sefont

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

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