Disabled MenuItem, how to draw ?

  • Thread starter Thread starter Gawelek
  • Start date Start date
G

Gawelek

I have my own class ImageMenuItem and
I have no idea how to draw (Enabled == false) menuitem.


Gawel
 
Take a look at ControlPaint.DrawStringDisabled method.

Thaks, it works, but I spent some time finding proper color.
White is quite good.

Gawel
 
Next problem is with DrawImageDisabled .

My code :
ControlPaint.DrawImageDisabled(e.Graphics, image, change.Left + 2,
change.Top + padding/2 - 1, Color.Gray);

And the image is not disabled. It looks differently, but not good.

It can by connected with background color ?



Gawel
 
Back
Top