NTaskDialog text color not from assigned NPalette


https://www.nevron.com/Forum/Topic8349.aspx
Print Topic | Close Window

By Craig Swearingen - 11 Years Ago

The NTaskDialog appears to be hard-coding the foreground text color to be black for both labels and buttons instead of using the palette's WindowText color.  To reproduce just start the "Nevron User Interface - "Part of Nevron .NET Vision" - C# Examples program that comes with the toolkit.  Select Edit -> Palette and choose Blue or Longhorn.  Notice all the buttons and labels in the application are now a white foreground color.  Select C# Examples -> Custom Forms -> Task Dialog - Examples.  Click the "Standard Message Box" button to show an NTaskDialog.  Notice the labels and buttons are all black (regardless of the palette you choose).  I see this on the 13.11.26.12 build.

I realize I can not use the NTaskDialog to get around this but as it has so many nice features is there a way I could use it and get the correct colors or can this be fixed?

By Nevron Support - 11 Years Ago
Hello Craig,

If you set palette of your application using NUIManager (NUIManager.Palette.Scheme = ...) the NTaskDialog should popup with the palette applied.
Otherwise you should set Palette property of NTaskDialog explicitly.
By Craig Swearingen - 11 Years Ago

Thanks for responding.  It sounds like you didn't understand my post.  Here's how to reproduce:

1) Start the Examples C# program that comes with the Nevron toolkit. 

2) Select Edit -> Palette and choose Blue or Longhorn palette.  Notice all the buttons and labels in the application are now a white foreground color. 

3) Select in the tree C# Examples -> Custom Forms -> Task Dialog - Examples. 

4) Click the "Standard Message Box" button to show an NTaskDialog.  Notice the labels and buttons are all black (regardless of the palette you choose).  They should be white like all the other labels and buttons elsewhere.

My program has the same issue with the colors of the NTaskDialog.  Its using the correct palette but the label and button foreground colors are hard-coded black and should be white for the Blue and Longhorn palettes.  This is a Nevron toolkit bug with NTaskDialog and has nothing to do with my application.

I added a screenshot of an NTaskDialog showing using the Longhorn palette.  Notice that the foreground text color of the button and the label are black.  For this palette it should be white.  Is there a way I can use an NTaskDialog and get the correct colors or can this be fixed?