trichview.com

trichview.support




A Bug


Return to index


Author

Message

Slavi Marinov

Posted: 08/06/2002 3:22:36


Here's a very unpleasant bug ( or it may not be a bug, if not explain how to

cope with it).

You create a form, a richviewedit named RVE, assign the style property to

some RVStyle item, and then create the following procedure :


procedure TForm1.RVECaretMove(Sender: TObject);

begin

  Button1.Enabled:=RVE.CanDelete;

end;


Now, write some lines of text in the RVE. And, try to select them with the

keyboard.... NOT WITH THE mouse (with mouse it works OK). You'll see that it

works not as it's supposed to. Why?


I corrected the problem by simply chaning the place of the row


Button1.Enabled:=RVE.CanDelete;


from CarretMove to OnSelect, but I'm interested why it does not work

otherwise, and maybe you'd like to fix it


Best wishes,

Slavi





Powered by ABC Amber Outlook Express Converter