Bug 7368

TX Text Control ActiveX 28.0 incompatible with DisplayOnly 12 October, 2021

Moritz Venn
12 October, 2021
Product: PowerBuilder Category: Third Party Software
Version: 2019 R3 Build: 2728
Classification: Appeon bug Publishing: Public
Priority: P3
Status: Scheduling Reason:
Mark Lee @Appeon 12 October, 2021
#2
Hi Moritz,

Thanks for reporting this problem and providing the test case.
I can reproduce it on our side and we will escalate this problem to our development team for further analysis.
We will need some time to figure it out and we will get back to you if any progress we would make.
 
For the time being, I suggest you can use TX Text Control ActiveX 15.0 instead of TX Text Control ActiveX 28.0 to work it around.
 
Or you can also work it around by using the code below:
this.rte_displayonly.displayonly = false
this.rte_displayonly.replacetext(sampletext)
this.rte_displayonly.displayonly = true 
 
Regards,
Mark Lee
Moritz Venn 12 October, 2021
#1
RTE-Invisible.zip (5KB)

*Phenomenon:
When using TX Text Control ActiveX 28.0 as Rich Text Edit control the DisplayOnly property no longer works properly.
The text displayed by the element is not readable.

*Reproduce Steps:
Set TX Text Control ActiveX 28.0 as RTE control in application object,
Add Rich Text Edit control to a window, 
Mark control "DisplayOnly" in Document Tab in Properties,
Programatically add some text to the control,
Start application.

*Remarks:
The expected behavior is that of TX Text Control ActiveX 15.0 which displays the text but does not allow the user to edit it.
This was tested with PowerBuilder 2019R3 (runtimes 2670 & 2728) and PowerBuilder 2021 (runtime 1288). All versions are affected by the defect.
OS:
Windows 10
Platform:
All
Database Type:
Microsoft SQL Server
Database Version: