Search found 9731 matches

by Sergey Tkachenko
Mon Nov 07, 2005 9:33 am
Forum: Support
Topic: Access violation when using search with table
Replies: 5
Views: 34083

Do you use RichView v1.9.8 and Delphi 2005?
by Sergey Tkachenko
Sun Nov 06, 2005 10:03 pm
Forum: Support
Topic: copy current col to a new current col
Replies: 18
Views: 81788

This method can be called only for editors, and it can be undone/redone by the user.
procedure CopyTableColumnEd(rv: TCustomRichViewEdit; table: TRVTableItemInfo;
SourceCol, DestCol: Integer);
var r: Integer;
Stream: TMemoryStream;
UnusedColor: TColor;
oldps, oldts:TRVFReaderStyleMode;
begin ...
by Sergey Tkachenko
Sun Nov 06, 2005 9:57 pm
Forum: Support
Topic: copy current col to a new current col
Replies: 18
Views: 81788

Copying the column SourceCol to the column DestCol.

procedure CopyTableColumn(rv: TCustomRichView; table: TRVTableItemInfo;
SourceCol, DestCol: Integer);
var r: Integer;
Stream: TMemoryStream;
UnusedColor: TColor;
oldps, oldts:TRVFReaderStyleMode;
begin
if SourceCol=DestCol then
exit ...
by Sergey Tkachenko
Sat Nov 05, 2005 10:00 pm
Forum: Support
Topic: Inline styles
Replies: 4
Views: 27493

Something like this is planned for future, see StyleTemplate collection in TRVStyle)
by Sergey Tkachenko
Sat Nov 05, 2005 9:43 pm
Forum: Support
Topic: Inline styles
Replies: 4
Views: 27493

There is an option in SaveHTMLEx to save inline styles instead of CSS table, but it saves all styles, and HTML becomes very large.
by Sergey Tkachenko
Sat Nov 05, 2005 9:40 pm
Forum: Support
Topic: copy current col to a new current col
Replies: 18
Views: 81788

Now about writing from stream to the cell.

There are two ways
1) First, using LoadRVFFromStream.
This method cannot be undone/redone and damages undo buffers (as viewer-style method), so call RichViewEdit1.ClearUndo after calling it.

Cell loading does not support styles, so we must turn off style ...
by Sergey Tkachenko
Sat Nov 05, 2005 9:26 pm
Forum: Support
Topic: copy current col to a new current col
Replies: 18
Views: 81788

Thanks again, Michel :)

Some comments about copying to the stream:

// c++
TRVTableCellData *Cell = Table->Cells[0][0];
Cell->SaveRVFToStream(MS, false, clNone, NULL, NULL);
// pascal
var Cell: TRVTableCellData;
Cell := Table.Cells[0,0];
Cell.SaveRVFToStream(MS, False, clNone, nil, nil);
The ...
by Sergey Tkachenko
Sat Nov 05, 2005 3:58 pm
Forum: Support
Topic: Table border printing problem
Replies: 14
Views: 57677

Is this a problem with strandard TRichView table printing, or with that procedure for printing one pixel border?
by Sergey Tkachenko
Sat Nov 05, 2005 8:46 am
Forum: Support
Topic: ERichViewError with UNDO via Actions
Replies: 11
Views: 49386

There is ONLY ONE possible reason for this bug: mismatched calls of SetUndoGroupMode.
If you call this method, please recheck your code.

There is an undo logging mechanism embedded in TRichView.
Compile your application with RVDEBUGUNDO define
(for example, add {$DEFINE RVDEBUGUNDO} in RV_Defs.inc ...
by Sergey Tkachenko
Fri Nov 04, 2005 8:55 pm
Forum: Support
Topic: Changing rveTable.cells content
Replies: 6
Views: 28717

It would be too complex to implement. I mean, disabling the update of internal data representing formatting. Redrawing does not occur usually, because Invalidate does not repaint the window itself. This case is an exception, because it involves creating of inplace table editors.

And I think that ...
by Sergey Tkachenko
Fri Nov 04, 2005 7:48 pm
Forum: Support
Topic: Very basic questions
Replies: 3
Views: 22025

Thanks, Michel.

Some additional information.

How can I get all text from the editor without selecting it and without using clipboard
function GetAllText(rv: TCustomRichView): String;
from RVGetText unit,
or
function RVGetTextRange(rv: TCustomRichView; RangeStart, RangeLength: Integer ...
by Sergey Tkachenko
Fri Nov 04, 2005 5:45 pm
Forum: Support
Topic: InsertRVFFromStream in Table Cells
Replies: 2
Views: 17453

Please send me a project (as simple as possible) reproducing this problem.
by Sergey Tkachenko
Fri Nov 04, 2005 5:42 pm
Forum: Support
Topic: ERichViewError with UNDO via Actions
Replies: 11
Views: 49386

May be they still use older version of your application, compiled with older RichViewActions?

If not, please repeat undo logging.
by Sergey Tkachenko
Fri Nov 04, 2005 1:58 pm
Forum: Support
Topic: Changing rveTable.cells content
Replies: 6
Views: 28717

Yes, it is slow, because it creates inplace editors for all cells one by one.
You can speed it up and remove flickering by forbidding redrawing:

SendMessage(rve.Handle, WM_SETREDRAW, 0, 0);
try
<indert that code here>
finally
SendMessage(rve.Handle, WM_SETREDRAW, 1, 0);
rve.Invalidate;
end;
by Sergey Tkachenko
Fri Nov 04, 2005 1:50 pm
Forum: Support
Topic: Style Templates
Replies: 3
Views: 27287

Yes, the sequence I described must be done at design time.
You can change properties in the Object Inspector, but using a component editor ("Settings" in the context menu when you right click TRichView in Delphi) is simpler.