U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
How can I change the background color of my Upp app?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=13130&th=2971#msg_13130
This is usually trivial for to do in X using .xinitrc, but
this does not seem to work.
All I want to do is change the background color of the UI.
Can't figure out how to do this.
How is this done in UPP?
]]>jlfranks2007-12-14T23:36:58-00:00Re: How can I change the background color of my Upp app?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=13131&th=2971#msg_13131
jlfranks wrote on Sat, 15 December 2007 00:36
All I want to do is change the background color of the UI.
I'm not sure whether I get you right, but if you just want to change the background color of a particular application see "GUI tutorial 4. Painting the view area". The deciding line is
w.DrawRect(GetSize(), SWhite);
Please take into consideration that the generic color names starting with "S" are deprecated. Cf. Draw.h. Use one of the names in Color.h:
Quote:
Black
Blue
Brown
Cyan
Gray
GrayColor(int) // 0 (= black) - 255 (= white)
Green
LtBlue
LtCyan
LtGray
LtGreen
LtMagenta
LtRed
LtYellow
Magenta
Red
White
WhiteGray
Yellow