How to add TM symbol as a superscript to button text in vb6.0 - vb6

I want to add TM symbol as a superscript to button text. Like "DemoTM" text and TM should be superscript of Demo text.
Any Solution would be great help.
Thanks

The Unicode superscript trademark is U2122 so
Button.Caption = "Demo" & ChrW$(&H2122)
You must obviously use a font that contains this glyph, for example MS Sans Serif does not, Segoe UI does.

No need to do this at run time.
Choose a Command button font that supports this symbol. Then in the Properties pane you can directly paste Demo™ for the Caption property's value.
If need be you can copy the character from the Character Map applet.
You can also paste this value into a source String literal if you want to do it at run time:
Command1.Caption = "Demo™"
No need for further gyrations.

Related

Is there a way to change the font size in the serch dialog Find and Replace with fields

Is there a way / settings to change and / or increase the font size in the search / find dialog (field where text is typed, not talking about the label) ? Example with long regexp, it becomes non readable at all, (stupid) example:
Find: ^/drive/www-root/aw/([a-z0-9_]+)/(.*)xml$
Replace with: # necho " " >> /drive/www-root/aw_files/xsltproc_1.done nxsltproc -o /drive/www-root/aw/1/2html /drive/www-root/aw/resources/1.xslt /drive/www-root/aw/1/2xml
enter image description here
Thanks
Although you can't specify the font size in the Find box to any arbitrary size, you can make it use the same font size as the editor. To do this, select Customize on the Tools menu, select the Search page, and ensure the Change Font for Find/Replace Drop-Down List option is set, and the Change Font only if Character Set of Selected Font is not System Default is clear.
An alternative way for such tasks:
EmEditor can grab text from such controls via its tray icon app (emedtray.exe).
Run emedtray.exe;
Add a hotkey for Grab: http://www.emeditor.org/en/dlg_tray_index.html
Then click (to set focus) in the field you want edit; Press the hotkey;
The text in that field should be grabbed into EmEditor main window;
Then you can view/edit it with the abundant functions EmEditor provides (including Ctrl+wheel to change font size);
After editing, just close that window, the edited text will be sent back to the source field.

NS button text interprets FontAwesome

If I set the text of the Button whose font is FontAwesome to something like "Download" - it interprets 'down' as an font from FA as well as 'ad'
e.g. Open = it'll display O and then a pen icon from FA.
Very weird - how can I stop this.
I'd like the button text to contain both FA icons (specified with unicode escape codes) and regular text.
I haven't used FontAwesome recently, I recall they use to denote icons by character code so there were no issues in combining text along with icons, not sure if that's changed now.
As a workaround you can use formattedText instead of text. You will be able to use different fonts within Button with 2 different FormattedString definitions, one for icon and another for text.

Superscript ® in Title bar

I need to insert the ® character as a superscript into the title bar of an app for the iPad. How can this be done in XCode?
As of iOS 5.x, you can't set text attributes like bold, superscript, etc. on individual characters within a label's text. (This includes the builtin labels of navigation bars.)
You can just insert the ® character in your string (you can type it on a US Mac keyboard with option-R, or use the escape code as in Jessedc's answer). Whether it appears small and superscript depends on the font used for the label -- some fonts make that symbol appear as such already, others make it larger and baseline-aligned.
Grab the unicode character
put it in a string
NSString *string = #"\u00AE"; //this is your (r)
Nearly a duplicate of How do I escape a Unicode character in my Objective-C source code?

How to display unicode control characters in visual studio text visualizer?

I get some text string from service, which contains Unicode control characters
(i.e \u202B or \u202A and others for Arabic language support).
But while debugging I can't see them in default text visualizer. So I need to enable display for such characters to determine which of them my text consists of. There is checkbox in text visualizer "show all characters", but it doesn't work as I expect.
Any suggestions?
Thanks in advance
Those are codes for explicit RLE and LRE order, ie if in RLE something should be displayed in LRE order.
http://unicode.org/reports/tr9/#Directional_Formatting_Codes

How to get a superscript in Qt Creator for label text?

I am trying to create a superscript of a 2 to show something is squared for the units label that comes after a field the user supplies in my dialog. I am using Qt Creator v2.0.1 on Windows. The QLabel has a text field and a textFormat field. I attempted to solve this by setting the textFormat combobox to RichText and then set the textFormat field to be: "µm{\super 2}" however, when previewing my dialog, the text is taken literally and not as RichText and thus there is no superscript 2 but instead the '{super 2}' with the backslash removed. I also tried escaping the backslash with '{\super 2}' but I then the literal '{\super 2}' when previewing the dialog.
How can I specify the superscript to Qt Creator so that my dialog preview shows the superscripted 2?
Here is how I want it to look: µm2
Apparently html works (not sure why RichText did not):
µm<sup>2</sup>
I find another easier way which is similar to #WilliamKF solution but it is easier for me.
for example, we have one QLabel in our UI like this :
For adding I right-click on that label and choose Change rich text ... and I will see this Dialog.
There I can easily write what I want and add superscript like this:
Then if I click Ok I have what I want and also I can choose source to see HTML tags :
<html><head/><body><p><span style=" font-size:16pt;">µm</span><span style=" font-size:16pt; vertical-align:super;">2</span></p></body></html>

Resources