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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu goes funny colour when I add icons

Status
Not open for further replies.

Ronin441

Programmer
Feb 22, 2002
128
AU
Under Windows XP (using Delphi 5 Pro update pack 1), my menus look fine, until I set a value for the menu's Images property. Then the menu background, and the background of all the submenus etc, goes white. (Or maybe it's going clWindow. Can't tell.) This issue does not occur under Windows 98 SE.

The background "transparent" colour of the images in my TImageList is clFuschia (aka magenta). I have a related problem with this: the backgrounds do not go transparent; they continue to show as magenta. Under Win 98 SE however, the white colour does go transparent. (Maybe this is happening under XP as well; but since the background is white, I can't tell.) My images are 16x16, 16 colour, using what Windows assures me is the standard Windows 16-colour palette. -- Doug Burbidge mailto:doug@ultrazone.com
 
Just done the same as you adding images to a menu. It appears to be a windows XP graphical effect and if you ask me makes the menu bar look a little naff. If you look at the Delphi menu bar it should be exactly the same as described in your program meaning theres not a lot you can do about it. Think I'll stick with 2000!
 
You're right -- Delphi's own menus do have the same problem. I hadn't noticed. But other apps (Word 97, for example) work OK, so it's a Delphi-specific problem. -- Doug Burbidge mailto:doug@ultrazone.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top