Search found 7651 matches

by Sergey Tkachenko
Fri Nov 04, 2005 7:48 pm
Forum: Support
Topic: Very basic questions
Replies: 3
Views: 7205

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): String; funct...
by Sergey Tkachenko
Fri Nov 04, 2005 5:45 pm
Forum: Support
Topic: InsertRVFFromStream in Table Cells
Replies: 2
Views: 5930

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: 11785

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: 8529

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: 6623

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.
by Sergey Tkachenko
Fri Nov 04, 2005 12:58 pm
Forum: Support
Topic: URL link in TRichView
Replies: 4
Views: 7881

Change the line:
URL := PChar(TRichView(Sender).GetItemTag(ItemNo));
to
URL := PChar(RVData.GetItemTag(ItemNo));

And yes, the string is freed by the control (make sure that rvoTagsArePChars is included in Options property)
by Sergey Tkachenko
Thu Nov 03, 2005 6:05 pm
Forum: Support
Topic: URL link in TRichView
Replies: 4
Views: 7881

Do you use a hypertext cursor over this link in TRichView?

It should be enough to process OnJump event (OnReadHyperlink and OnWriteHyperlink are for RTF (Rich Text Format), hyperlinks are read from RVF (RichView Format) automatically).

Can you save this document to file and send it to me?
by Sergey Tkachenko
Thu Nov 03, 2005 3:14 pm
Forum: Support
Topic: Changing rveTable.cells content
Replies: 6
Views: 8529

- rveTable.Cells[r,c].BestWidth := 200 - rveTable.Cells[r,c].BestHeight:= -(100 div rveTable.Rows[r].Count); BestHeight does not support negative values, they will be ignored. Only BestWidth treats them as %. By the way, rveTable.Rows[r].Count is a number of columns, not rows. As for the question. ...
by Sergey Tkachenko
Thu Nov 03, 2005 2:51 pm
Forum: Support
Topic: Style Templates
Replies: 3
Views: 6623

StyleTemplates are reserved for future use. As for limiting a set of styles, right click the editor, choose "Settings" in the popup menu, select "Use a predefined set of styles". After that, new styles will not be created when inserting/pasting RTF and RVF files. So, if you application does not have...
by Sergey Tkachenko
Thu Nov 03, 2005 11:47 am
Forum: Support
Topic: Replace text in TppRichView
Replies: 5
Views: 9036

No, you cannot use these methods in TRichView.

It's not necessary to understand mail-merge demos code completely. Usually, you can just copy the main procedure (FillFields) in you project without changes.

Or, as you suggested initially, use a hidden richviewedit. It's ok, but much slower.
by Sergey Tkachenko
Thu Nov 03, 2005 10:50 am
Forum: Support
Topic: spaces which make a memo-text justify are white,
Replies: 3
Views: 6037

I still cannot reproduce the problem. In my tests, these spaces are not visible (transparent) if the corresponding TextStyles.BackColor = clNone, as it should be.
by Sergey Tkachenko
Thu Nov 03, 2005 9:11 am
Forum: Support
Topic: Meaning of image size (rvepImageWidth, rvepImageHeight)?
Replies: 3
Views: 6588

There is a way to use a specific resolution instead of the screen resolution. There are two values: 1) TRVStyle.TextStyles.PixelsPerInch . By default it equals to 0 (meaning: using the screen resolution). This value affects text displaying. For example, by setting it to 96 you will see how the docum...
by Sergey Tkachenko
Thu Nov 03, 2005 8:55 am
Forum: Support
Topic: Lines wrapping in win2000
Replies: 1
Views: 4580

Sorry, I do not understand.
You use standard TRichEdit, right? We do not provide a techical support for standard Delphi components.
by Sergey Tkachenko
Thu Nov 03, 2005 8:53 am
Forum: Support
Topic: Live Spellcheck slow speed
Replies: 5
Views: 7871

Actually, it was designed not for speed but for consuming low CPU resources. No, new thread is not created after OnChange. When making changes, the thread is suspended and then resumed after the change was completed. Suspending the thread while making changes is absolutely necessary. Possible delays...
by Sergey Tkachenko
Wed Nov 02, 2005 9:44 pm
Forum: Support
Topic: Error about CharSpacing
Replies: 4
Views: 6696

As I said, currently this value is interpreted by Windows (SetTextCharacterExtra function).
If you have a better suggestion, let me know.