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 » RichText,QTF,RTF... » Bugfix: Report header/footer looks good in dark mode, not dark
Re: Bugfix: Report header/footer looks good in dark mode, not dark [message #56815 is a reply to message #56759] Sat, 17 April 2021 17:08 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Setting highlightpara is not necessarry and does not make sense. What the fix needs is darktheme = false, which is default, just Paint without PaintInfo sets it to true. So in fact, the correct fix seems to be

void Report::PaintHF(Draw& w, int y, const char *qtf, int i)
{
	RichText txt = ParseQTF(FormatHF(qtf, i));
	PaintInfo pi; // need pi so that darktheme is false
	txt.Paint(w, 0, y, GetSize().cx, pi);
}

[Updated on: Sat, 17 April 2021 17:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Text wrapping in QTF Table
Next Topic: QTF Centered in ArrayCtrl header
Goto Forum:
  


Current Time: Thu May 09 17:30:47 CEST 2024

Total time taken to generate the page: 0.02075 seconds