Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
jlfranks is currently offline  jlfranks
Messages: 55
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 Go to previous message
Werner is currently offline  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

Previous Topic: Office Ribbon skin
Next Topic: Strange Chameleon Problem
Goto Forum:
  


Current Time: Sat Feb 16 12:21:08 CET 2019

Total time taken to generate the page: 0.00605 seconds