1. Patrick Fabian
  2. PowerBuilder
  3. Tuesday, 17 March 2020 08:57 AM UTC

Hello PowerBuilder community,

 

I have another issue with a rte window. We have a datawindow in which we want to copy the contents of a rich text edit window.

I don't know how to copy the contents upon pressing the save button, since I do not know how to fetch the save event. Otherwise I would insert my "copy rte content into data window"-function before the save event, but somehow this doesn't work.

So I tried another thing, which was copying the text after every key event.

In order to copy text from a rte-window, you need to select all the text. The user shouldn't see this after every key event, so I used "setredraw(false)". With our old PowerBuilder version from 2011, that was not a problem. But after purchasing PB 2019, it now starts flickering because of the "setredraw()"-function. But if I don't use that function, the user will see the selection of the text going on. Since our PB application is rather massive, the issue of the rte window (especially the tool bar) flickering is always coming up. Our workers actually started loathing the new version which is why we had to fall back on PB 2011.

Even on my machine, which is a bit more powerful, the rte-window in a completely new PB project starts flickering.

The code to reproduce the issue is very simple:

this.setredraw(false)
long holdStart
holdstart = this.selectedstartpos
long holdLength
holdlength = this.selectedtextlength
this.selecttextall( )
String txt
txt = this.selectedtext()
//this.dw_1.settext(txt) //Whereever you want to paste the text.
this.selectedstartpos = holdstart
this.selectedtextlength = holdlength
this.setredraw(true)

Is there any way to solve this issue? Is it a bug?

 

Patrick Fabian Accepted Answer Pending Moderation
  1. Wednesday, 18 March 2020 13:36 PM UTC
  2. PowerBuilder
  3. # 1

I just attached a picture and marked the rte window (it's put over the actual dw, in order to hide it) and I also marked the save button which is clearly not in the window.

Attachments (1)
Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 17 March 2020 14:47 PM UTC
  2. PowerBuilder
  3. # 2

Are you using the TX TextControl or the TE Edit Control?

Comment
  1. Patrick Fabian
  2. Tuesday, 17 March 2020 14:55 PM UTC
It says: "Built-in TX Text Control"
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 18 March 2020 14:52 PM UTC
Please open a support ticket https://www.appeon.com/standardsupport/newbug and provide a reproducible test case and mention you are using TX TextControl. Thanks.
  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.
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.