Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox color issue

Status
Not open for further replies.

aharrisreid

Programmer
Nov 17, 2000
312
GB
I am trying to work out what the difference is between the listbox.DisabledForeColor and DisabledItemForeColor properties (same applies to the ...BackColor) . The VFP8 help file is not very helpful - can anyone help me out here?

Many thanks,
Alan
 
Alan,

If you set the listbox's Enabled property to .F., the DisabledForeColor will apply; this will apply to the whole of the listbox.

If you disable an individual item (typically by preceding it with a backslash [this applies to certain rowssourcetypes only]), the DisabledItemForeColor will apply.

If you have both a disabled listbox and disabled items, the DisabledForeColor will take priority.

Hope this is clear.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
>If you disable an individual item (typically by preceding >it with a backslash [this applies to certain >rowssourcetypes only]), the DisabledItemForeColor will >apply.

>If you have both a disabled listbox and disabled items, >the DisabledForeColor will take priority.

>Hope this is clear.

It is now. Thanks very much.

Regards,
Alan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top