Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you overstrike characters in an AnsiString?

Status
Not open for further replies.

ronk

Programmer
Jun 20, 2001
3
0
0
DK
Hello everyone

I have a TLabel and I would like to put a bar directly over a character in the caption. What I mean is, a common symbol for the average of x, is x with a line directly above it. I was wondering if one could use something like

AnsiString aStr="x" + ? + AnsiString(char(175));

where ? is some kind of control character that causes the bar (char(175)) to overstrike the x. Does anyone know how to do this, or if it is possible? Thank you for any help.
 
I don't know of any way to overline characters. However, if you use a font containing mathematical symbols, you will probably find an x-bar character.
 
Or you can create your own font, it is very simple
 
Thank you for your suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top