Search found 9409 matches

by Sergey Tkachenko
Wed Jul 05, 2006 6:21 pm
Forum: Support
Topic: Problems with Pchars Tags
Replies: 2
Views: 9822

Change
Tag := PChar(RV_CampoTexto.GetItemTag(ItemNo));
to
Tag := PChar(RVData.GetItemTag(ItemNo));
(your code will not work if the link is in table cell).

Make sure that rvoTagsArePChars is included in RV_CampoTexto.Options.
by Sergey Tkachenko
Sun Jul 02, 2006 4:27 pm
Forum: Support
Topic: Bug in RVGetTextLength function
Replies: 2
Views: 11798

Well, yes, calling Format saves the situation for TRichViewEdit (because it adds one empty text item). But not for TRichView, so it may be really considered as a bug. Fix: open RVLinear.pas, change RVGetTextLength: function RVGetTextLength(rv: TCustomRichView): Integer; begin Result := 0; if rv.Item...
by Sergey Tkachenko
Sun Jul 02, 2006 4:18 pm
Forum: Support
Topic: TDBRichView and corresponding database field update
Replies: 2
Views: 12718

Actually, DBRichViewEdit->CanChange() calls table->Edit(). Calling CanChange() & Change() is required only if DBRichViewEdit was modified using non-editing methods (such as Load** or Add*** methods). CanChange() & Change() are not required if the document was modified using editing methods (...
by Sergey Tkachenko
Thu Jun 29, 2006 8:50 pm
Forum: Support
Topic: How could't not remove item into undolist
Replies: 2
Views: 10724

Sorry, it's not possible.
If one operation is not written in undo list, all records in undo list made before this operation become invalid.
by Sergey Tkachenko
Wed Jun 28, 2006 7:55 pm
Forum: Support
Topic: [TRichView bug?] Problem with white font and AddPicture
Replies: 10
Views: 25312

Please send me this document saved as RVF file.
by Sergey Tkachenko
Tue Jun 27, 2006 6:55 pm
Forum: Support
Topic: pagination feature?
Replies: 1
Views: 8659

not supported in TRichView or TRichViewEdit, only in TRVPrintPreview.
by Sergey Tkachenko
Tue Jun 27, 2006 6:54 pm
Forum: Support
Topic: controls position
Replies: 7
Views: 22412

TPoint ClientCoords = ctrl->ClientToParent(Point(0,0), RichViewEdit1); TPoint DocCoords = RichViewEdit1->ClientToDocument(ClientCoords); But it will not help you with printing, because a position on page is not a position on screen. If you want to customize printing, process RVPrint->OnPrintComponen...
by Sergey Tkachenko
Tue Jun 27, 2006 6:43 pm
Forum: Support
Topic: Copy to clipboard without crash
Replies: 3
Views: 14270

Copying may be really very slow if document contains multimegabyte text.
In the current version, it can be improved only by modifying VCL source (changing MemoryDelta from Classes.pas to lager value (power of 2)). In the next update, this problem will be fixed without modifying VCL source.
by Sergey Tkachenko
Tue Jun 27, 2006 6:41 pm
Forum: Support
Topic: [TRichView bug?] Problem with white font and AddPicture
Replies: 10
Views: 25312

Does this problem persist if you include RVGifAnimate.pas in the project, and change RV->AnimationMode to rvaniOnFormat?
by Sergey Tkachenko
Thu Jun 22, 2006 4:02 pm
Forum: Support
Topic: Clicking a table cell causes OnItemAction to fire
Replies: 8
Views: 26408

The most reliable way is checking if this image is already in the list.
by Sergey Tkachenko
Thu Jun 22, 2006 3:49 pm
Forum: Support
Topic: Printing Problem with tables!
Replies: 47
Views: 142020

No, just another work (many small changes and bug fixes) distracted me from this problem.
by Sergey Tkachenko
Thu Jun 22, 2006 3:48 pm
Forum: Support
Topic: Copy to clipboard without crash
Replies: 3
Views: 14270

Does it really crash? It just may take very long time. It's because a standard TMemoryStream is used. TMemoryStream is unefficient when writing a large amount of data, because many memory reallocations occur. In the next update, TRichView will use another stream class, with larger memory delta. Copy...
by Sergey Tkachenko
Thu Jun 22, 2006 3:37 pm
Forum: Support
Topic: Clicking a table cell causes OnItemAction to fire
Replies: 8
Views: 26408

"Inserted" is called every time when the item is moved to another document (i.e. another RVData). This includes moving to cell inplace editor and back to the cell (it happens on selection).
So it is by design.
by Sergey Tkachenko
Thu Jun 22, 2006 3:34 pm
Forum: Examples, Demos
Topic: [Examples] Count of characters and words
Replies: 37
Views: 234364

Yes, it can be used for TRichViewEdit too.

PS: I just modified it to take tab characters into account. Line breaks are still not counted.
by Sergey Tkachenko
Wed Jun 21, 2006 8:50 pm
Forum: Support
Topic: Clicking a table cell causes OnItemAction to fire
Replies: 8
Views: 26408

?
OnItemAction with rviaInserted is called when the item is already inserted in the list of items of RVData, and its index in this list is known.