[Mono-winforms-list] ToolStrip background color

d3x0r d3ck0r at gmail.com
Fri Aug 15 18:08:50 EDT 2008


if I set

		_my_context_menu.RenderMode = ToolStripRenderMode.System;

then the background renders correctly.   It is apparently a flaw in
"ToolStripProfessionalRenderer"....

leave this unanswered much longer and I'll figure out the line to change :)


d3x0r wrote:
> 
> I have been tinkering with mono... and with my current theme, I have black
> backgrounds and white text most places.
> 
> Text boxes and TreeListViews emulate windows .NET functionaltiy (they
> maintain a white background and black text, no matter what apperance
> settings have)
> 
> List boxes under windows aquire the background color of 'window' (and the
> text color)   [under mono, list box backgrounds are white, but the text
> color is taken from current settings (in my case, white) making them
> unusable)
> 
> ToolStrips under windows aquire the background color of '3d objects' [
> under mono, they have a white background, and the text color from current
> settings (in my case, white) ]
> 
> Can this be fixed at some point to either 100% emulate .NET under windows?
> 
> Or better yet, just respect all user theme settings for controls,  and not
> default parts to white when none are defined as white?
> 
> 
> 	ContextMenuStrip control_context_menu = new ContextMenuStrip();
> 
> 	Console.WriteLine( "Color is " + control_context_menu.BackColor + "
> control is " + SystemColors.Control.ToArgb().ToString("X") );
> 
> output is 
> 
> Color is Color [Control] control is FF232323
> 
> later, when adding the items... each item claims its BackColor is also
> Control... so why is it white anyway?
> 
> 

-- 
View this message in context: http://www.nabble.com/ToolStrip-background-color-tp18992131p19005638.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list