Solved

Equations in static text boxes

Posted on 1999-01-16
2
255 Views
Last Modified: 2010-04-02
I'm using VC++5. I have some static text boxes that I would like to put greek letters in or superscripts or subscripts. How do I do this?

I also would like to change background colors and colors of letters in test boxes and push buttons. Can I do this in the resource editor?

Thanks!
0
Comment
Question by:dave_p
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1184377
static text boxes can't do anything that fancy.  Your choice is to create your own control (possibly by subclassing the static text control) that does so, or use an RTF control.  An RTF control can do this sort of formatting, but you would have to disable it to make it act more like a static text control.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184378
An RTF control allows you to specify the color of the characters in the control, so that should be no problem.

To handle the color of other controls, you need to handle the MW_CTLCOLORxxx messages (the xxx varies as there are different messages for different types of contols.)  You can handle the WM_CTLCOLORBTN message for a push button.  

Let me know if you have any questions.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question