Context Menu For Tray Icon

S

Simon Jefferies

Hello,

I have attached a context menu to a notify icon. The problem is that when I
run the program I get blank text for the items on the context menu, they
work fine, but no text is shown and the menu items themselves have a width
large enough for an icon.

Any ideas?
Simon Jefferies
Tools Programmer
Headfirst Productions
(e-mail address removed)
 
S

Simon Jefferies

Yes, that sample worked!

The only difference i can see is that the I've created the menu and trayicon
using the designer rather coding it.

One other difference, I've just noticed is that the "Owner Draw" property
keeps getting set to TRUE. This is probably the cause? I have tried to set
if back to FALSE, but it keeps changing. I've recreated the menu items and
that hasn't made any differences.

Any ideas?

--
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:[email protected]
 
H

Herfried K. Wagner [MVP]

* "Simon Jefferies said:
One other difference, I've just noticed is that the "Owner Draw" property
keeps getting set to TRUE. This is probably the cause? I have tried to set
if back to FALSE, but it keeps changing. I've recreated the menu items and
that hasn't made any differences.

That's the cause, but I feel sorry, I don't know any reason why this
property is set to 'True' automatically.
 

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