G Gawelek Nov 9, 2003 #1 I have my own class ImageMenuItem and I have no idea how to draw (Enabled == false) menuitem. Gawel
B Bob Powell [MVP] Nov 9, 2003 #2 Take a look at ControlPaint.DrawStringDisabled method. -- Bob Powell [MVP] C#, System.Drawing The October edition of Well Formed is now available. Find out how to use DirectX in a Windows Forms control http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com
Take a look at ControlPaint.DrawStringDisabled method. -- Bob Powell [MVP] C#, System.Drawing The October edition of Well Formed is now available. Find out how to use DirectX in a Windows Forms control http://www.bobpowell.net/currentissue.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm Read my Blog at http://bobpowelldotnet.blogspot.com
G Gawelek Nov 9, 2003 #3 Take a look at ControlPaint.DrawStringDisabled method. Thaks, it works, but I spent some time finding proper color. White is quite good. Gawel
Take a look at ControlPaint.DrawStringDisabled method. Thaks, it works, but I spent some time finding proper color. White is quite good. Gawel
G Gawelek Nov 9, 2003 #4 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
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