text box/list box font weight issue

B

Brad Pears

I have a listbox and when it is set to enabled = false, I would like to have
the text in the listbox be greyed out as well. Currerntly this does not
happen for a list box as it does for text box, combo boxes etc... When you
disable a listbox, the text in the listbox remains normal or bold - whatever
it was set to - just the background changes to a "gray" colour.

So, in light of that, I tried setting the listboxes fontweight in code and I
could get it to "bold" the text but could not get it any lighter than the
normal setting of "200".

I did notice one strange thing while testing, when I set the different
weights in the properties area for the listbox to extralight, light, normal
and medium, the text weight was the same for all!!! It wasn't until I set it
to semi bold that I saw a difference. Could this be related to a font issue
on my computer perhaps?

Any ideas?


Thanks Brad
 
B

Bill

I'm seeing only slight variations going from extra bold to extra light.
In view of the fact you're already in code, try setting the font color
to 8421504 when you disable the listbox. Perhaps that will attain
the effect you want.
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top