禁用时按钮前景色 [英] Button Forecolor When Disabled

查看:95
本文介绍了禁用时按钮前景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让按钮forecolor保持不变?

禁用?


我在表单上有多个按钮,具体取决于各种用户

输入,有些会启用或不启用但我宁愿他们的文字不是

会变灰。


谢谢。

Is there a way to leave the button forecolor unchanged when it is
disabled?

I have multiple buttons on the form and depending on various user
inputs, some will or will not be enabled but I''d rather their text not
go to gray.

Thanks.

推荐答案

幸运的是,这是标准的,因为用户现在正在期待它。


我们是二战后不再生活几年了。


Cor


< go ******** @ gmail.comschreef in bericht

新闻:69 ********************************** @ t41g2000 hsc.googlegroups .com ...
Luckily not, that is standard as users are now expecting it.

We are not living some years after WWII anymore.

Cor

<go********@gmail.comschreef in bericht
news:69**********************************@t41g2000 hsc.googlegroups.com...

有没有办法让按钮forecolor保持不变?

禁用?


我在表单上有多个按钮,取决于各种用户

输入,有些将启用或不会启用但我宁愿他们的文本不是

变灰了。


谢谢。
Is there a way to leave the button forecolor unchanged when it is
disabled?

I have multiple buttons on the form and depending on various user
inputs, some will or will not be enabled but I''d rather their text not
go to gray.

Thanks.


我不知道你的评论是什么。您对我的

用户,我的应用程序的目的或部署它的环境一无所知。
I''m not sure what to make of your comment. You know nothing of my
users, the purpose of my application, or the environment where it will
be deployed.


< go ******** @ gmail.comwrote in message

news:63 ******************* *************** @ 75g2000h so.googlegroups.com ...
<go********@gmail.comwrote in message
news:63**********************************@75g2000h so.googlegroups.com...

我不知道该怎么做你的评论你对我的

用户,我的应用程序的目的,或者它将部署的b / b的环境一无所知。
I''m not sure what to make of your comment. You know nothing of my
users, the purpose of my application, or the environment where it will
be deployed.



禁用的控件应该有灰色文本!只需检查*任何

应用程序存在* ...禁用菜单为灰色,禁用选项

按钮为灰色,禁用复选框为灰色。即使在输入这个

回复时,由于我没有选择任何复制/粘贴,这些按钮是

灰色。只需将鼠标悬停在任何菜单上即可。


这是Windows 3.1之前采用的标准,因此您的用户无需担心他们是谁, *应该*用于看到灰色按钮。


现在,如果你坚持打破规则,没有人可以阻止你。您应该能够将这些按钮放在容器控件中并禁用

容器,而不是按钮。准备支持电话询问

问题,如按钮看起来可用,但是当我点击它时,没有什么

发生


-

Ken Halter

兼职小组

Disabled controls are supposed to have grey text! Just check *any
application in existance*... Disabled menus are grey, disabled option
buttons are grey, disabled checkboxes are grey. Even while typing this
reply, since I haven''t selected anything for copy/paste, those buttons are
grey. Just hover your mouse over any menu.

This is a standard that was adopted pre-Windows 3.1, so your users, no
matter who they are, *should* be used to seeing grey buttons.

Now, if you insist on "breaking the rules", no one can stop you. You should
be able to place those buttons inside of a container control and disable the
container, instead of the button. Be prepared for support calls asking
questions like "The button looks available, but when I click it, nothing
happens"

--
Ken Halter
Part time groupie


这篇关于禁用时按钮前景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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