1. Martin Kaltenböck
  2. PowerBuilder
  3. Tuesday, 20 March 2018 14:18 PM UTC


Hello,

I'm just testing the new built in Richtext Control (TE Edit Control) in PB 2017 R2.
I'm using the richtext control as well as the datawindow richtext edit style.

As previous mentioned in this post
https://community.appeon.com/index.php/qna/q-a/rte-controls-and-colors
I wonder if there is a way to set the textcolor of the richttext (or of the selected portion of text).
Unfortunately there is no answer to this question.

We know, the old RTE Control (TX Text Control) had the possibility to open the font dialog (including an option for the textcolor) by using the popup menu or doubleclicking on the background of the rte control toolbar.

I tried to display colored richtext in the new control from the database that was inserted with the old control and it works.
It is also possible to paste colored richtext into the new control with ctrl+V.

So the new control obviously supports colors, only the ability to set the textcolor is missing.

Is there any workaround for this issue, or an enhancement/bug fix in the near future?

Using/buying the old control is not an option for me!

Thanks, Martin

Accepted Answer
Gerrit Bruns Accepted Answer Pending Moderation
  1. Tuesday, 20 March 2018 16:11 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Martin,

when the focus in a datawindow is in a column with rich text edit style, the key combination Ctrl+d should open an additional window for further modifications. It includes color modifications for text and background.

Regards, Gerrit

Comment
  1. Miguel Leeuwe
  2. Thursday, 22 March 2018 15:27 PM UTC
Very nice, so as a workaround, we can edit an entry in the Edit menu for users who don't like to remember shortcuts. Great!

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 20 March 2018 16:03 PM UTC
  2. PowerBuilder
  3. # 1

Hi Martin;

   Have you tried the GetTextColor ( ) and in particular the SetTextColor ( ) methods?

Regards ... Chris

Comment
There are no comments made yet.
Martin Kaltenböck Accepted Answer Pending Moderation
  1. Tuesday, 20 March 2018 20:30 PM UTC
  2. PowerBuilder
  3. # 2

@Chris

Great answer! I overlooked that in the PB Help.  

But I think, the SetTextColor() function is only suitable for the control not for the datawindow richtext edit style, correct?

 

@Gerrit

Awesome! - That's the easiest solution I could imagine.

Where is this documented ?

I think this is a standard shortcut in word processing.

I found out that there are more useful shortcuts, for example:

ctrl+F .. Find

ctrl+H .. Search and Replace

ctrl + B/I/U .. Bold, italic, underline

ctrl + L/J/R .. justify left, centerd, right

Thank you very much!

Comment
  1. Alfredo Aldama
  2. Tuesday, 20 March 2018 22:07 PM UTC
A little more of the DW RTF theme, from design

* select the field

* right click

* choose the properties option ...

   Change attributes such as color, background, size



 



 





  1. Helpful
  1. Gerrit Bruns
  2. Wednesday, 21 March 2018 13:02 PM UTC
Hi Martin,



some of the shortcuts are described in the PB help under "Working with Rich Text" => "Formatting keys and toolbars".



The CTRL+d shortcut is not documented. I can't say why we know it, maybe it was described in some older PB Versions. I know it because we use it to trigger the shortcut by script to open the window with rightclick dropdown menus.



Regards, Gerrit

  1. Helpful
  1. Govinda Lopez @Appeon
  2. Monday, 26 March 2018 18:01 PM UTC
Hi All,



 



You may find that in the "User's Guide" (page 735).



 



 



Regards,

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.