How do you add a superscript character into a Powerbuilder textbox? - textbox

Is there any way to do this in the Powerbuilder properties window for a datawindow's textbox?

That kind of depends on how you define "textbox", but in general the only way to mix normal and superscript text is with a richtext control. In PB 11.5, you can even use richtext as a column style.
Good luck,
Terry.

Yes. For the text control, you must select a font that has superscript characters (Arial does).
Go into the Windows Character Map (usually in the start menu under Accessories->System Tools) and select your font.
Then go to the superscript character that you want to place in your text control. Click it and then click the Select button to place it down in the character map text box.
Then click the Copy button.
Now you can return to PowerBuilder and paste this value into the properties window text area.
As long as the same font is selected for the DataWindow control as was selected in the character map it should show as your superscript character.
This same techinque can be done to include any of the Wingding type characters as well.

We ended up using two separate text fields. It's a butt-ugly solution, but it works. The superscript field has a smaller font and is nudged a little higher up.
I think newer PB versions support superscripts.
Thanks for the help.
Glenn

If you go to the character map - when you select your character it will show the keys to enter this character on the bottom right of the window.
Example : in Arial font - the ® (registered) mark is Alt + 0174
To enter these, turn your numlock on, hold the alt key down, and type 0 1 7 & 4 then let up on the alt key. You have to use the number keys on the number pad to do this the ones on the top of the keyboard dont work.
You can then enter your characters directly or do something like this :
ls_key = '®'

Actually I stumbled across a simpler solution. I copied and pasted a portion of the text from a pdf into the text property of a datawindow text contol. The superscript character simply pasted in. So I'm guessing that Dougman's solution would work too.
Example:
"™Trademark used under..."
Note: I'm using PB 9.0.1
Thanks for all the help,
Glenn

Related

How to format a text like bold/italic in UITextField in Swift iOS?

Here consider this image. I have taken a toolbar with icons for text formatting. After selecting that sentence if I hit B (bold) it should be bold. Even I need that too if I select bold then further text to be show as bold. Consider this textbox UITextField. Incase you have some good reference like github you are welcome. I have already spend two days in a row in SO but not get any proper solution. One bold function is enough for me.

Is there a way to use non-breaking spaces in a UILabel in a launch screen?

I would like to ensure that names in a multi-line copyright string on the launch screen do not get split by line breaks on different devices. Inside a view controller with a UILabel outlet textLabel, the escape sequence "\u{00a0}" works programmatically:
textLabel.text = "Lots of text before... Firstname\u{00a0}Lastname... and after."
It displays the string with the escape sequence replaced by a space and the words either side always appear on the same line.
However, I can't get it work by putting it in as the value in a UILabel in Interface Builder - either in LaunchScreen or any other View Controller. It just displays the string with the codes left as typed. I've tried all the various combinations of \u, \U, \\u, \\U, \x+, etc. suggested in several SO questions to no avail. I think intervening in the display of the launch screen programmatically is impossible.
Have I missed something?
Don't use \u{00a0} in the text you enter into the storyboard. Enter an actual non-breaking space. The easiest way is to type ⌥-space (option-space).
If you ever need to enter any other special characters, another option is to use the standard Character Viewer. Select Emoji & Symbols from the Edit menu to bring up the Character Viewer. Then find the desired character that you wish to put in a label. You can do this in Swift code as well instead of typing cryptic Unicode escape sequences into your strings.

How to change TAB to SPACEs and set their amount in Brackets editor?

I'm using Brackets editor http://brackets.io/ and I'd like to change behavior when I click TAB key it will put 4 SPACEs instead and also I'd like to change amount of spaces added.
Is it possible to do this adjustment?
In the lower right corner of the editor, you'll see text saying Spaces: 4 or the like.
You can click Spaces (or Tab) to toggle between those and click the number to change it.

How to remove this text box?

How do i remove this text box from my excel table ? If i try to write something in that box, it overlap the next cell, but i can write in that box but it has a limited number of character,so if i write more than 11 characters, my box will have the same size, but the text will be pushed.
- the box
- more than 11 characters
I don't know how it appeared but i would like to remove it . Thanks.
Right-click in the textbox and from the context menu, pick Delete

Delphi 7 - cxDBGrid Column : How to display a check mark next to some character string

I have to display in a cxdbGrid column 'Test √', and I got the check mark by using a symbol font but the rest of the characters changed.
I don't have an answer if you do actually need to have the check as part of actual text in the text column. I don't think I've ever seen an app that did it that way though. The usual way of doing this is to add a column to the left or right of the text column in question and have the new column use a checkbox control. Then just set the value of the checkbox column to true or false.
It's quite common to include some type of image to represent the state of a column in a grid control. You could implement your own OnCustomDrawCellEvent to put an icon image there, instead of text and a font. Below is a link to a tutorial of how to accomplish this.
How to draw an icon along with the text in a grid cell

Resources