Home » U++ Library support » Look and Chameleon Technology » How can I change the background color of my Upp app?
How can I change the background color of my Upp app? [message #13130] |
Sat, 15 December 2007 00:36 |
jlfranks
Messages: 57 Registered: May 2007 Location: Houston, TX, USA
|
Member |
|
|
We're running on Linux.
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?
|
|
|
Re: How can I change the background color of my Upp app? [message #13131 is a reply to message #13130] |
Sat, 15 December 2007 04:19 |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
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
|
Werner
[Updated on: Sat, 15 December 2007 04:19] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Dec 14 14:28:17 CET 2024
Total time taken to generate the page: 0.02516 seconds
|