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 » U++ Widgets - General questions or Mixed problems » Problem with specific HW configuration
Re: Problem with specific HW configuration [message #55869 is a reply to message #55867] Thu, 24 December 2020 15:28 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I see. Please change:

Referti::Referti()
{
	CtrlLayout(*this, "Referti");
	MinimizeBox();
	Icon(RefertiImg::Small());
	reset ^= THISFN(ResetWidgets);
	cerca ^= THISFN(Cerca);
	copiaCF ^= THISFN(CopiaCF);
	incollaCF ^= THISFN(IncollaCF);
	copiaPrenotazione ^= THISFN(CopiaPrenotazione);
	incollaPrenotazione ^= THISFN(IncollaPrenotazione);
	copiaRisultato ^= THISFN(CopiaRisultato);
	risultato.Transparent(true);
	rect.Color(SWhite); /// <=================================== Use SWhite instead of White
	risultato = "Hello World!";
}


Explanation: As RichTextCtrl is meant to display texts in GUI context, it adjusts all colors according to mode (Dark/White). So Black actually becomes White.

Colors with S prefix as similary adjusted as well.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can I make round form
Next Topic: K_CTRL_SEMICOLON and K_CTRL_PERIOD keys share the same constant value on Win32
Goto Forum:
  


Current Time: Sun Apr 28 09:29:47 CEST 2024

Total time taken to generate the page: 0.91359 seconds