Hi Julian,
thank's for the hint with initially setting the content with an empty string during INIT. That did it.
So for all you folks out there...
When you attempt to make an absolut readonly-not-selectable text, you should be sure to initialize the "editor" during the init-phase with an empty string and set the READONLY / Not-Selectable Flags afterwards.
So in addition to above example code in VFP9 SP2 there is only a minor change:
Code
*!* ------- Object.INIT
this.setEditorMode(0,1+8+16+32+64+128,4,0)
this.setlayoutMode(1,0,100)
this.setenableFlags(1,0)
this.memo.SetBProp(0,7,1) && SingleClick on Hyperlink triggers OnHyperlink
* Initial Empty String into 1st Editor
this.settext(1,"","RTF",.T.)
*Then make it READONLY and Disable Selection
this.memo.SetBProp(0,10,1) && ReadOnly ON
this.memo.SetBProp(2,0,1) && DisableSelection
this.memo.SetBProp(2,1,1) && DisableCaret
this.memo.SetBProp(2,2,1) && DisableGetFocus
*!* ------- When setting the content
WITH this.oRTF as WPTDynInt.WPDLLInt
.clear()
.textFormat="RTF"
.settext(1,lcMyRTFtext,"RTF",.T.)
* no more need to re-set the readonly-flags here
ENDWITH
Alles anzeigen
So... Problem solved.
Thanks and best regards
Michael