msmeth
09-08-2004, 12:47 PM
Is it possible to have superscripts (like for the degree symbol in a temperature) in a textbox or label in VB6?
Superscript in text?msmeth 09-08-2004, 12:47 PM Is it possible to have superscripts (like for the degree symbol in a temperature) in a textbox or label in VB6? pikzel_R 09-08-2004, 03:27 PM Is it possible to have superscripts (like for the degree symbol in a temperature) in a textbox or label in VB6? The short answer : No (not without subclassing) Have you looked at the RichTextBox control? It can do both subscript and superscripted text. There's also some 3rd party textbox usercontrols/ActiveX/ocxes (mostly made from richtextbox controls) that also provide superscripting (if you do a search). What would be involved in using subclassing to make a special owner-drawn version of the VB textbox? This will give you some idea of the work involved: http://www.elitevb.com/content/01,0099,01/ msmeth 09-09-2004, 02:15 PM The short answer : No (not without subclassing) Have you looked at the RichTextBox control? It can do both subscript and superscripted text. There's also some 3rd party textbox usercontrols/ActiveX/ocxes (mostly made from richtextbox controls) that also provide superscripting (if you do a search). What would be involved in using subclassing to make a special owner-drawn version of the VB textbox? This will give you some idea of the work involved: http://www.elitevb.com/content/01,0099,01/ Hi pikzel. I didn't know abt the RichTextBox control, but that works. However, if anyone is interested, with the labels and textboxes it is possible to do what I wanted (the temperature) by using Chr(177) to get the degree symbol. Also, Chr(189) gives 1/2 displayed nicely (I need that too). |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum