Array Manipulation

DisabledItemBackColor, DisabledItemForeColor

These properties control the colors used for disabled items in a list or combo box.

Usage

oObject.DisabledItemBackColor = nBackColor nBackColor = oObject.DisabledItemBackColor oObject.DisabledItemForeColor = nForeColor nForeColor = oObject.DisabledItemForeColor
We've come up with only two situations where these properties come into play.

When the RowSourceType for a list or combo is an array or explicit list, you can disable individual items by preceding the text with "\". So, an array item containing "\Zowie" is disabled in a list or combo.

The only other time an item is disabled is when RowSourceType=7 (Files). In that case, there's an entry that represents the current directory. It's disabled. It shows up in these colors. The separator bar that divides the top portion of the file list from the main body uses DisabledItemBackColor, but its ForeColor is black no matter what.

Because the normal dithering makes disabled items look different than enabled items, we suggest you go with the flow and just let these be the same as ItemBackColor and ItemForeColor.

See Also

ComboBox, DisabledBackColor, DisabledForeColor, ItemBackColor, ItemForeColor, ListBox, RowSourceType


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net