1. Edward Chan
  2. PowerBuilder
  3. Monday, 11 July 2022 13:59 PM UTC

Dear Sir,

User want to change color on part of text under a datawindow text column. I change the column edit style from "Edit" to "RichText" format. It allows user to select part of the text, and change it's font properties but changing color is not available.

Is there any method to allow user to change color on part of a datawindow text column?

Thank you very much.

Edward

 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 11 July 2022 22:40 PM UTC
  2. PowerBuilder
  3. # 1

Hi Edward, yes there is a way. Select your text and then use Ctrl+Alt+D. It will allow you to change only the selected text:

 

I would have sworn someone told me about another way of doing this, I'll have a look to see if I can find it and get back to you.

regards,

MiguelL

 

Comment
  1. Mark Goldsmith
  2. Monday, 11 July 2022 23:39 PM UTC
Hi Miguel...yes there is another way to do this but first you need to display the Rich Text Toolbar via 2 of 3 different settings available for the RichTextToolbarActivation constant, those being RichTextToolbarActivationOnEdit! and RichTextToolbarActivationAlways! Once that is turned on you can then double-click in any area of white space in the toolbar to bring up the respective dialogue. In this case, double-click on the white space to the right of the font drop down selection (or font size etc.) to bring up the dialogue.



HTH...regards,

Mark
  1. Helpful 2
  1. Miguel Leeuwe
  2. Tuesday, 12 July 2022 07:39 AM UTC
Ha, I knew you commented something similar in the past, but try finding it doing a search on this forum ...

Thank you very much!

regards,
  1. Helpful
  1. Mark Goldsmith
  2. Tuesday, 12 July 2022 12:48 PM UTC
Lol, no problem and you're welcome!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 11 July 2022 17:55 PM UTC
  2. PowerBuilder
  3. # 2

Hi Edward;

  The only way I have done this type of changes "on-the-fly" before is to provide the RTF "escape codes" for setting the background colorization (or other special RTF features) in the RTE Control and/or RT DWO.

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.