RichViewEdit1.Paste doesn't work inside the table cell.

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

RichViewEdit1.Paste doesn't work inside the table cell.

Post by Marsianin »

I'm using RichViewEdit1.Paste to control what I want to paste before doing it.
But RichViewEdit1.Paste doesn't works when I have cursor inside the table cell.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I cannot reproduce this problem.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

This code doesn't works when cursor inside the table:

Code: Select all

if RichViewEdit1.Focused then RichViewEdit1.Paste
.Focused returns False if we're inside the table.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Then remove IF.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

What you mean?

I need this if because my Paste menu can paste into a different controls.
I changed my code so it works now but this is a bug in TRichView.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It is not focused because its child control (cell inplace editor) is focused instead.
Use RichViewEdit1.FocusedEx
Post Reply