Solved

Equations in static text boxes

Posted on 1999-01-16
2
251 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Handle Exceptions during instantiation 28 427
Add values of each row in an array 3 70
DCT of  2D array using fftw in c++ 9 87
why doesn't assert terminate here? 2 8
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

679 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