Fill an ncurses window with a color - c

I only have a basic knowledge of ncurses, and I was unable to find an answer to this question in the man pages.
When you set the foreground and background color for a window, is there a way to fill the whole window with the background color?

Please try bkgd, or wbkgd for specifying a window.
First you have to enable color support with start_color().
And then define color pair.
Example:init_pair(1,COLOR_BLUE, COLOR_RED)
The order is pair_number, foreground, background
Finally, set colors: wbkgd(WindowName, COLOR_PAIR(1)).

You can also use wbkgd(stdscr, COLOR_PAIR(1)) to change the main window color.

Related

Change border brush from skyblue in wizard control of extended wpf toolkit

I'm using Wizard control of Extended wpf toolkit package.
I would like to change color of the border. See sky blue in image below:
I tried set broder brush\background to wizard\wizard page\window controls, but it failed.
Anybody know how to change it?
Your assistance is appreciated!
Now that you have provided more info, I can see that your question title does not match what you asking to change. You are not asking to change the color of the border of the Wizard Control, you are asking to change the color of the WPF Window.
It takes some time to get things right, and I highly discourage doing this if you app will be used by people with disabilities, who need high contrast, who customized their desktop to a certain color because of color blindness, and the list goes on...Microsoft has worked very hard to address such issues with the defaults.
BUT...you can change this by restyling your Window Style. You can find plenty of code examples.
Here are two:
Can i set the window border color in WPF?
How can I style the border and title bar of a window in WPF?

How to set background color of item-label in line chart

I am using jfree-chart library to create line chart.
I want to know how to set background color of item-label in line-chart.
Item labels don't even have background color, just text. You could try one of the org.jfree.chart.annotations like XYTextAnnotation, which has a setBackgroundPaint() method.

Canvas background color not as white as I need

I am setting the background color of my Canvas as 'white'. However when I compare my canvas with a vendor application, their canvas is 'whiter', which is the color I want for my canvas too. I have looked at all the color choices available for canvas background color but nothing makes my canvas any whiter than it is. Any suggestions would be appreciated.
Simple solution:
Use one of the browser plugins to get the actual "white" color of their app.
One example of a color-picker is Chrome plus the ColorZilla extension:
https://chrome.google.com/webstore/detail/colorzilla/bhlhnicpbhignbdhedgjhgdocnmhomnp

Silverlight OOB-Application - set backgroundcolor of main window to transparent

I create a Silverlight OOB application in which I try to change the background color of the window transparent. I would like to use as wallpaper its own image. This is not square and therefore interferes with the white background color of the main window.
In the OutOfBrowserSettings I can put as the "Window Style" to "none ".
In WPF there are the two following window properties:
AllowsTransparency = "True"
Background = "Transparent"
Unfortunately, this does not seem to know about Silverlight, though! Does anyone know how I get the background color of the main window transparent?
Have you tried to set beackground to {x:Null}? Or maybe to set the alpha in color to 0 which means transparent. For example #00FFFFFF or #00000000.
This is not possible with the current version (4) of Silverlight.

Changing the WPF DatePicker Year/Month header area background color

How can i change the background color of the header section of the WPF toolkit datepicker control?
Since the Default color is dark blue and the foreground is in black, it seems a bit difficult to read the text.
Thanks in advance.
just see this link
http://msdn.microsoft.com/en-us/magazine/dd882520.aspx
the code can be download from http://code.msdn.microsoft.com/mag200906Foundations
hope this can help you.
I was able to get the default template of the datepicker control using Blend.
Just needed to change the style to the appropriate color and set the datepicker's Calander style to it.
This color is set with the CalendarBGBrush in the first Grid inside the CalendarItem template. The brush is a gradient with a hard stop at the top. This is where the blue color is. You'll have to make your own template for the calendar and then you can replace or adjust this brush.

Resources