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 » Community » Newbie corner » Button text, background and click color (Newbie would like to change these colors ... and is frustrated.)
Button text, background and click color [message #59552] Mon, 30 January 2023 19:16 Go to next message
netdiver is currently offline  netdiver
Messages: 4
Registered: January 2023
Location: Berlin
Junior Member
Dear U++ community,

I have just startet to use U++, so sorry for asking real newbie questions.

I can't find a way to change the colors of a button in a simple way.
I already tried the following: (on Windows 10)

myBtn.NakedStyle();
Button::Style foo;
foo.textcolor[0-4] = Color( 100, 100, 100 );
myBtn.SetStyle( foo );

Ok, I can change the main text color. But what about the hover and clicked color?
And is there also a way to change the background colors (normal, hover and clicked)?

Is there a struct with all these values? (Taht would be so much easier.)

All the best
NetDiver
Re: Button text, background and click color [message #59556 is a reply to message #59552] Thu, 02 February 2023 09:07 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi,

See reference/Chameleon example


Warm Regards

Deepak
Previous Topic: how to update IDE?
Next Topic: Add a new build method
Goto Forum:
  


Current Time: Sat Apr 20 05:39:32 CEST 2024

Total time taken to generate the page: 0.04059 seconds