Profile Picture

NTaskDialog text color not from assigned NPalette

Posted By Craig Swearingen 8 Years Ago
Author
Message
Craig Swearingen
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 99, Visits: 654

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?



Nevron Support
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)Supreme Being (4,090 reputation)

Group: Forum Members
Last Active: 9 hours ago
Posts: 2,962, Visits: 3,363
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.

Best Regards,
Nevron Support Team



Craig Swearingen
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 99, Visits: 654

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?



Attachments
NTaskDialog.JPG (419 views, 15.00 KB)


Similar Topics


Reading This Topic