1. Thilo Mack
  2. PowerBuilder
  3. Thursday, 15 June 2023 07:51 AM UTC

Hello

In PB 2019 we were able to hide some toolbar items from the rich text edit control.

For example we hid the fontface combobox.

We did this using the handle of the rte toolbar and calling "showWindow(ll_Handle, 0)" from the user32.dll.

We were also able to hide severall toolbar items using SendMessage()

 

In PB 2022 R2, however, we are unable to customize the displayed toolbar items. 

We have updated our FindWindowEx() calls to the correct class names of the rich text control and receive the correct handles.

 

Calling ShowWindow(ll_handle, 0) on the comboboxes results in them still beeing displayed (but disabled):

 

  • Is there any way to hide toolbar items and combo boxes of the rich edit control in PB2022?
  • Is there anywhere a documentation about the new rich text control dlls?

 

Best regards

Thilo

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 June 2023 15:33 PM UTC
  2. PowerBuilder
  3. # 1

Hi Thilo;

  What you were doing before was an unsupported feature of the 3rd party control (RTE engine) that PB uses "under the hood" to drive the RichText control. Many different RTE "engines" have changed in recent years that PB used (ie: TX Control V15 =>TE Control => TX Control => v28) - so I am not surprised that this "hack" no longer works. Also, the TX Control that Appeon gets from the 3rd party vendor only contains a subset of the full products features.

  The proper (maybe the better word here would be "safe") implementation for the "long run" (IMHO) would be to create a Visual User Object toolbar that mimic's the RTE toolbar's look & feel. One that you can tailor / change "on-the-fly" to your App's exact needs via PowerScript. Then resize the VUO over top of the RTE control (set no-toolbar) and then control the interaction from the VUO's toolbar using the RTE's property & methods.

  The other approach would be to buy the TX control from the vendor and use that instead of the PB RTE. The native TX Control has a plethora of other features & behaviours. Same for other RTE 3rd party controls.

FYI: https://www.textcontrol.com/products/windows-forms/tx-text-control-dotnet/overview

Food for thought. ... HTH

Regards ... Chris

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 15 June 2023 08:54 AM UTC
  2. PowerBuilder
  3. # 2

Same recommendation as given to other people: Please report on https://www.appeon.com/standardsupport/newbug?check_logged_in=1

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.