With the clicks one single table cell the cell-content with Edit shows. Who can help?
Thank you
JM
With the clicks cell the content a spreadsheet in Edit shows
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Use OnRVMouseDown event.
GetAllText is declared in RVGetText unit.
Note: it may return multiline text.
Code: Select all
procedure TForm3.RichViewEdit1RVMouseUp(Sender: TCustomRichView;
Button: TMouseButton; Shift: TShiftState; ItemNo, X, Y: Integer);
begin
if (Button<>mbLeft) or (Shift<>[]) then
exit;
if RichViewEdit1.InplaceEditor<>nil then
Edit1.Text := GetAllText(RichViewEdit1.TopLevelEditor)
else
Edit1.Text := ''; // not a cell
end;
Note: it may return multiline text.