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 » Look and Chameleon Technology » Colored text in Button
Re: Colored text in Button [message #60708 is a reply to message #60705] Fri, 26 July 2024 10:08 Go to previous message
forlano is currently offline  forlano
Messages: 1205
Registered: March 2006
Location: Italy
Senior Contributor
Didier wrote on Thu, 25 July 2024 11:08
Hello Forlano,
All you have to do IS start you're text with thé QTF escape sequence: "\1". (I'm not dure if it's thé right séquence)


Thank you.
It works. This set a centered red label

l = "\1[@6= " << label << "]";
btn.SetLabel(l);


Luigi
 
Read Message
Read Message
Read Message
Previous Topic: LabelBox disappear in DarkMode under Windows
Next Topic: Text scaling in U++
Goto Forum:
  


Current Time: Fri Mar 21 21:20:09 CET 2025

Total time taken to generate the page: 0.03094 seconds