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 » Background color of StaticText or EditString
Re: Background color of StaticText or EditString [message #54814 is a reply to message #54813] Thu, 17 September 2020 20:17 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 954
Registered: August 2007
Experienced Contributor
Quote:
Is there a way to set vertical alignment?


Not unless you use a PaintRect (or override the Paint method) and draw the text/background yourself.

If you need full control over the style and position of text, I'd suggest using RichTextCtrl instead. It displays text/richtext with formatting (even hyperlinks) and supports background colors.

Best regards,
Oblivion


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing mouse icon with MouseEvent
Next Topic: Add Button crashes program on start
Goto Forum:
  


Current Time: Thu May 26 10:56:17 CEST 2022

Total time taken to generate the page: 0.01397 seconds