trichview.com

trichview.support




Re: SelectionExists resets the selection!


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/26/2002 22:07:22


It's better to update buttons in OnSelect event.

Selection may be not finished in OnCaretMove, and SelectionExists may give

incorrect results (I added this note in the help file)


> I was wondering why when doing shift+downarrow or shift+home was selecting

> from the doc start to the caret position instead of what it should select,

> and found that tbCopy.enabled:=rveBrowser.SelectionExists in the

> OnCaretMoved event was resetting the selection. On tracing through, I

found

> that changing it to

> tbCopy.enabled:=rveBrowser.RVData.SelectionExists(False,True) solves the

> problem, but hardly desirable behaviour...

>

>





Powered by ABC Amber Outlook Express Converter