Context Menu For Tray Icon

  • Thread starter Thread starter Simon Jefferies
  • Start date Start date
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)
 
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]
 
* "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.
 
Back
Top