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
Re: Please, add SetColor function to ProgressIndicator [message #12369 is a reply to message #12365] Fri, 26 October 2007 14:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
spidertp wrote on Fri, 26 October 2007 07:19

luzr wrote on Fri, 26 October 2007 13:07

spidertp wrote on Fri, 26 October 2007 05:07


What do you think?



Anyway, this thing is supposed to work (and indeed does work) even if you switch the theme in XP (e.g. to make XP look like MacOS X). And on linux too (where, admitedly, the real meat is now still missing). And in Vista.

I know, adding SetColor slightly spoils it anyway, but IMO simple uniform color bar is acceptable everywhere.

In the same time, I think your code could easily be turned in external function (or utility class). No need to change uppsrc.

Which reminds me the persistent topic, to introduce "art" or "theme" package group that would contain all visual enhancements...

Mirek



Well, I still need to learn a lot. But I admit, that UPP gives me a real programming pleasure Cool

I'm trying to make a little visualization for automation process and I'd to enhance ProgressIndicator a little bit.

Concerning new packages, maybe it's a good idea.

If you doesn't want to include my enhancements to UPPsrc, then tell me the name of a new utility class, and I wil make it.

I don't want to change my code every new version of UPP...

Best regards Smile
Tomek


Do you need a class for it?

I am not 100% sure, but I think it should be possible to make simple

void SetProgressXPColor(ProgressIndicator& pi, Color c);

function (perhaps with some static ArrayMap<Color, ProgressIndicator::Style> inside).

Mirek
 
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: Sun Jul 13 09:21:30 CEST 2025

Total time taken to generate the page: 0.05032 seconds