Toolstripmenu and -items don't use menu system color setting

G

Guest

I've got a customer who has set his menu text to white on black. When using a
new VS2005 toolstripmenu (tsm) we run into all sorts of problems, because the
tsm doesn't automatically use the menu system backcolor. The menu's all have
white text on light grey backgrounds and are totally unreadable. Is this a
bug? Seems like it, since they *do* take over the menu text system color as
forecolor.

I've tried using a small routine to walk over all toolstripmenuitems (and
since they're not members of the forms controls that's tedious as well) and
set their backcolors, and it works, but now the highlight color and the
checkmarks remain stubbornly purple. It looks awful and annoyingly there are
no properties available to set those.

This way the entire toolstripmenu becomes utterly useless.
Has anybody got a clue how to fix this?
 
G

Gabriel Lozano-Morán

I've got a customer who has set his menu text to white on black. When
using a
new VS2005 toolstripmenu (tsm) we run into all sorts of problems, because the
tsm doesn't automatically use the menu system backcolor. The menu's all have
white text on light grey backgrounds and are totally unreadable. Is this a
bug? Seems like it, since they *do* take over the menu text system color as
forecolor.

Actually since the menus are controls the forecolor is set to
SystemColors.ControlText but I believe that you are correct about there
being a bug in the toolstripmenu. Because when you change the windows menus
to black background on white forecolor and then go back to the
toolstripmenu, the property ForeColor is still set to
SystemColors.ControlText (black) but the forecolor seen on the designer is
white.

Gabriel Lozano-Morán
 

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

Top