1. Peter Moran
  2. PowerBuilder
  3. Monday, 19 October 2020 14:26 PM UTC

Hi,

I am interested in using the RichText control in PB2019.

The menu allows me change the font, size, weight, italics, etc - but am I am unable to change the text colour (or background colour)?

Has anyone else had such a requirement and what was the solution?

My user needs to edit the richtext on a datawindow - and also I need it to appear on various reports.

Many thanks,

Peter

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 19 October 2020 23:56 PM UTC
  2. PowerBuilder
  3. # 1

(Edit: I did not realise that your question is about a rich text edit column on a datawindow. What's described below is for a rte control. But ... the good news is that the CTRL+ALT+D key combination also works for datawindows. Just click somewhere in the richtext column's text (focus must not be on that annoying toolbar that pops up) and hit CTRL+ALT+D). I believe that in previous version this key combination was different, something like Ctrl+D, but I'm not sure). (Also: use the Alt key on the left of the keyboard, not the "Alt Gr" on on the right).

------------------------------------------------------------------

What follows below is for the rte control:

You can change the colour, it's just not become easier over the years (probably because the people who design this are morons. The control was way better in the 90-ties).

1. First, select some text

2. then do a right-mouse-button click

3. and select properties 

 

Then go to the second tab page:

 

If you use CTRL+ALT+D, you'll get a different dialog and you don't have to select any text first:

Regards

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 19 October 2020 16:08 PM UTC
  2. PowerBuilder
  3. # 2

Hi Peter;

  You would have to add a few controls around the RTE Control to allow the user to Select a colour, then call the SetTextColor() command.

  TIP: You can use the ChooseColor() command to pop-up the built-in color selection dialogue !

Regards ... Chris

Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.