T
Tom Ellison
The first difference is that the corners of a command button are rounded. I
do like that appearance.
Both a command button and a label have click events, so the label can
function as a command button.
The label has an advantage I find quite wonderful. You can assign it a
background color. It can react to situations. It can tell you there is a
state to the data, and when you click on it, it can display information
about that state, so you can fix it.
To a command button, you cannot assign a background color. It does allow a
picture to be placed in it, which a label does not, so if you're into
drawing pictures, the command button it your control.
For pictures, use the image control, which has a click event and a
background color.
I have wondered why the otherwise terrific Command Button control does not
have background color control. Other than it's nice rounded corners, it is
really quite redundant in its capabilities. Maybe we could get a "corner
rounding" property on some other controls.
I have found that, to attract a user's attention, coloring a label is quite
superior to having a command button's nicer shape. For example, in the
header of forms, I place command buttons colored yellow. My users know
these buttons expose combo boxes used to filter the form, and they change to
pale green when a filter is active. Click them again and the filter is
removed, the combo box is made invisible, and it is yellow again. This
becomes quickly intuitive to my users. Usually after being shown only once
how to use one they know how to use additional ones without asking.
I recommend you carefully consider having a standard set of colors for
labels, and use them instead of command buttons.
Tom Ellison
If anyone would care to post this to a web site, you have my permission,
providing you notify me here or by email and give me the URL of the web site
and an email address where I can request changes to this message. You must
attribute this to me, please, and give me access to repair or enhance it.
You may, of course, remove it from your site without notice, though I'd
prefer to know why, if you please.
To those reading this post in the newsgroup, just enjoy!
do like that appearance.
Both a command button and a label have click events, so the label can
function as a command button.
The label has an advantage I find quite wonderful. You can assign it a
background color. It can react to situations. It can tell you there is a
state to the data, and when you click on it, it can display information
about that state, so you can fix it.
To a command button, you cannot assign a background color. It does allow a
picture to be placed in it, which a label does not, so if you're into
drawing pictures, the command button it your control.
For pictures, use the image control, which has a click event and a
background color.
I have wondered why the otherwise terrific Command Button control does not
have background color control. Other than it's nice rounded corners, it is
really quite redundant in its capabilities. Maybe we could get a "corner
rounding" property on some other controls.
I have found that, to attract a user's attention, coloring a label is quite
superior to having a command button's nicer shape. For example, in the
header of forms, I place command buttons colored yellow. My users know
these buttons expose combo boxes used to filter the form, and they change to
pale green when a filter is active. Click them again and the filter is
removed, the combo box is made invisible, and it is yellow again. This
becomes quickly intuitive to my users. Usually after being shown only once
how to use one they know how to use additional ones without asking.
I recommend you carefully consider having a standard set of colors for
labels, and use them instead of command buttons.
Tom Ellison
If anyone would care to post this to a web site, you have my permission,
providing you notify me here or by email and give me the URL of the web site
and an email address where I can request changes to this message. You must
attribute this to me, please, and give me access to repair or enhance it.
You may, of course, remove it from your site without notice, though I'd
prefer to know why, if you please.
To those reading this post in the newsgroup, just enjoy!