1. Tracy Lamb
  2. PowerBuilder
  3. Saturday, 1 April 2023 13:30 PM UTC

Hi all,

I thought I'd play around with the RichText edit style on one of the fields in a datawindow.  I don't want the toolbar to show up every time I click in that field. Rather, I'd like something like the CTRL+ALT+D (or some other shortcut) to popup when the user wants to change something on the font.

The datawindow only retrieves one record.  I think it's a free-form DW, but might be a tabulare dw. The name of the dw control on the window is "dw_6". The name of the DataObject is "d_estimate_rt". And the name of the RichText field is "description".

I tried 2 different ways in the dw control's constructor script to no avail. (one at a time)

//this.Modify ( "Datawindow.RichTextToolBarActivation=0")
this.Modify ( "description.RichTextToolBarActivation=0")

I don't see anything in the dw painter itself that let's me set anything related to RichText edit style.

TIA,

~~~Tracy

 

Accepted Answer
Tracy Lamb Accepted Answer Pending Moderation
  1. Sunday, 2 April 2023 15:30 PM UTC
  2. PowerBuilder
  3. # Permalink

Well, once I figured it out, it was easy! On the DW control's constructor event in the window, I simply added:

this.RichTextToolbarActivation = RichTextToolbarActivationNever!

Now the toolbar never shows up.  But when the user types CTRL+ALT+D, the font pop-up window displays until the user click OK or cancel.

~~~Tracy

Comment
  1. Tracy Lamb
  2. Wednesday, 12 April 2023 18:24 PM UTC
Realized after a few more edits that I can set the RichText Toolbar Activation Mode property on the datawindow control in the window. No need for the extra script in the constructor event.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from 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.