You can use TRichViewEdit.OnSelect event. In this event, call GetSelectionBounds, enumerate all selected items and check if they contain TEdit.
As for other your questions, I need some time to answer them. I'll try to answer in
Search found 9391 matches
- Sat Jan 12, 2008 11:09 am
- Forum: Support
- Topic: TEdit Control and Font
- Replies: 6
- Views: 16196
- Sat Jan 12, 2008 11:06 am
- Forum: Support
- Topic: I have an question about TRichViewEdit
- Replies: 26
- Views: 48060
- Sat Jan 12, 2008 11:05 am
- Forum: Support
- Topic: How to save selectionbound for future use
- Replies: 1
- Views: 8338
- Thu Jan 10, 2008 4:45 pm
- Forum: Support
- Topic: How to save table background img original path+name in HTML
- Replies: 6
- Views: 14972
Do you use this code: procedure TForm3.RichViewEdit1HTMLSaveImage(Sender: TCustomRichView; RVData: TCustomRVData; ItemNo: Integer; const Path: String; BackgroundColor: TColor; var Location: String; var DoDefault: Boolean); var FileName: String; begin if (ItemNo>=0) and RVData.GetItemExtraStrProperty...
- Thu Jan 10, 2008 4:32 pm
- Forum: Support
- Topic: Off-screen rendering
- Replies: 3
- Views: 11267
- Thu Jan 10, 2008 12:46 pm
- Forum: Support
- Topic: Off-screen rendering
- Replies: 3
- Views: 11267
In the latest version (available for registered users), TRVReportHelper does not require forms (can be created without parent or placed on datamodule). But I doubt that VCL components can work in thread properly. As for the paragraph coordinates, can you explain what you want to implement? I'll try ...
- Wed Jan 09, 2008 5:04 pm
- Forum: Support
- Topic: Bounds checking for TRichViewEdit.
- Replies: 2
- Views: 8998
- Wed Jan 09, 2008 4:58 pm
- Forum: Support
- Topic: Adding to image path when exporting
- Replies: 1
- Views: 7547
Continued here: http://www.trichview.com/forums/viewtopic.php?t=2227
- Wed Jan 09, 2008 4:56 pm
- Forum: Support
- Topic: How to save table background img original path+name in HTML
- Replies: 6
- Views: 14972
But I think you should check if FileName is a full local path (do not add 'file://' to relative paths and to internet addresses).
For example,
For example,
Code: Select all
if (Length(FileName)>=2) and (FileName[2]=':') then ...
- Wed Jan 09, 2008 4:48 pm
- Forum: Support
- Topic: How to save table background img original path+name in HTML
- Replies: 6
- Views: 14972
Your code work for table background. For table cells: if (ItemNo=-1) and (RVData.GetSourceRVData is TRVTableCellData) then begin FileName := TRVTableCellData(RVData.GetSourceRVData).BackgroundImageFileName; if FileName<>'' then begin Location := 'file://' + FileName; DoDefault := False; end; end; Fo...
- Wed Jan 09, 2008 10:44 am
- Forum: Support
- Topic: Table's indent lost in RTF
- Replies: 1
- Views: 8712
- Tue Jan 08, 2008 1:56 pm
- Forum: Support
- Topic: Problem with header
- Replies: 4
- Views: 13469
You draw header above the printable area (above the rectangle defined in PrintAreaRect). You can reserve space for header by increasing RVPrint.TopMarginsMM. The code below does it. Call it before calling RVPrint1.FormatPages. // returns page width and height, in printer pixels procedure GetPageSize...
- Tue Jan 08, 2008 12:17 pm
- Forum: Support
- Topic: I have an question about TRichViewEdit
- Replies: 26
- Views: 48060
1) I do not completely understand the question. There is no designtime document editor, so items cannot be inserted at design time. GetItemCoords returns coordinates of item at the moment of its call. Of course, document must be formatted, otherwise coordinates are undefined. 2) When you do a drag&a...
- Mon Jan 07, 2008 11:58 am
- Forum: Support
- Topic: I have an question about TRichViewEdit
- Replies: 26
- Views: 48060
- Thu Jan 03, 2008 8:37 pm
- Forum: Support
- Topic: Background picture/color problem
- Replies: 1
- Views: 7887