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 » Slider&ProgressIndicator » Please, add SetColor function to ProgressIndicator
Please, add SetColor function to ProgressIndicator [message #12278] Tue, 23 October 2007 13:09 Go to previous message
spidertp is currently offline  spidertp
Messages: 16
Registered: October 2007
Location: Poland
Promising Member
In one of my projects I need to change the color of a ProgressIndicator.

So, I added few things to Progress.h and Progress.cpp:
1) in Progress.h in the
class ProgressIndicator : public Ctrl {

1a) under protected:

Color SColor;


1b) under public:

void  SetColor(Color& color) { SColor = color; }


2) in Progress.cpp
2a) in Constructor:
SetColor(SColorHighlight());

2b) in function
void ProgressIndicator::Paint(Draw& w)
I replaced
w.DrawRect(r1, SColorHighlight());
with
w.DrawRect(r1, SColor);


and (I think) that's all folks Wink

Can you include it to UPPSrc?

Best regards,
Tomek


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ProgressIndicator in StatusBar
Next Topic: ProgressIndicator in ArrayCtrl
Goto Forum:
  


Current Time: Mon Jul 14 10:31:08 CEST 2025

Total time taken to generate the page: 0.02908 seconds