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?