Hi everyone;
If I follow the discussion correctly, then I confirm that I've observed this Trichedit unwanted behavior. The problem can be reproduced with \samples\testrich.prg. Simply change line #32 to this:
- Code: Select all Expand view
REDEFINE BUTTON ID 998 ACTION ( oRich:SetBold( .t. ) /*oRich:GoToLine( 10 )*/, oRich:SetFocus() )
Highlight some text and then press the last button (#998). The selected text is set to bold, but immediately after that, all text gets selected (select all).
I did a diff on TRichEdi and could not find any differences dating way back. I think the culprit is TControl. There is a newer method PaintBack() that loos very conspicuous.
Reinaldo.