Hello Appeon Community,
I have a problem with a rte window in PowerBuilder 2019.
I'm using the command "SetTextStyle" in order to create a custom button to reset all the text style changes (bold, italic, underline, etc) to the text in the control.
The curious thing is, it only sets the text style in general for the bold command.
The code of the button goes like this:
rte_1.SelectTextAll()
rte_1.SetTextStyle(false, false, false, false, false, false)
The results are like this:
Input | Output |
This is a sample text. | This is a sample text. |
This is a sample text. | This is a sample text. |
This is a sample text. | This is a sample text. |
Basically speaking, it only sets the "bold" part of the Textstyle. I tried all the other options, changed the boolean values, the only part working for me is "bold". How can that be? Am I wrong somewhere?
Is there another way to directly change the TextStyle of some text? Is there some variable I can manipulate?
Thank you for your time
P. Fabian