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 » FileSel&FileList, Path » Style for FileSel / FileList
Style for FileSel / FileList [message #27243] Wed, 07 July 2010 13:15 Go to next message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi folks

FileSel / FileList is not Style complient, so when changing the
global params SColorFace(), SColorText() etc. at runtime, the first settings remain..

normally, after a SColor* change, i do

//for all relevant UI parts that depend on global GUI style i do, (here only TabBar shown)
	{
		//TABBAR STYLE
		TabCtrl::Style& st = TabBar::StyleDefault().Write();
		st = st.Standard();
		
	}
//after recalculating default style infos
	RefreshLayoutDeep();


this works pretty fine for most controls,
well except for FileSel and FileList for now.

any idea how to change the visual formatting of FileList / FileSel on the fly?
Re: Style for FileSel / FileList [message #27246 is a reply to message #27243] Wed, 07 July 2010 22:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
kohait00 wrote on Wed, 07 July 2010 07:15

hi folks

FileSel / FileList is not Style complient, so when changing the
global params SColorFace(), SColorText() etc. at runtime, the first settings remain..



Actually, I have to admit the we gave up at that point. "Live" style changes would require too much work for too little _practical_ benefit.
Re: Style for FileSel / FileList [message #27247 is a reply to message #27246] Wed, 07 July 2010 22:54 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
Quote:


"Live" style changes would require too much work for too little _practical_ benefit.


my app unfortunately needs to change the appearance at runtime. (day / night view, it's a audio control app, working both backstage with dark light and also outdoors..)

but the problem was solved when i inspected the sources and properly adjusted the
Quote:


SColorHighlightText_Write(White());


because FileList recalculates stuff based on a bool dark flag, then using hightlight stuff..

nevertheless, the described method above works for me pretty fine.
together with setting global colors prior..i might post a topic on that later to indicate it complete.

the results are pretty nice though Smile thanks to 'porting and overriding' the Ctrls.iml as well.
Previous Topic: Problem with FileSel
Next Topic: FileSel: How to get the file name (just saved).
Goto Forum:
  


Current Time: Thu Mar 28 10:01:40 CET 2024

Total time taken to generate the page: 0.01756 seconds