Search found 15 matches

by Bjoern
Mon Jul 27, 2020 9:08 am
Forum: Support
Topic: Cursor in text with rvprDoNotAutoSwitch in his protection
Replies: 1
Views: 9316

Cursor in text with rvprDoNotAutoSwitch in his protection

In a TDBRichViewEdit I have user-entered text and automatically inserted text. The automatically inserted text is inserted with TextStyle.Protection := [rvprModifyProtect,rvprConcateProtect,rvprDoNotAutoSwitch,rvprStyleProtect,rvprStyleSplitProtect]; TextStyle.Color := clGray; TextStyle.BackColor ...
by Bjoern
Fri Mar 16, 2018 1:19 pm
Forum: Support
Topic: Problem with DBRichViewEdit and Textstyle
Replies: 1
Views: 10402

Problem with DBRichViewEdit and Textstyle

I have a strange problem with DBRichViewEdit and styles. On a DBCtrlGrid there is a DBRichViewEdit, two DBRichViewEdits are visible (Rowcount 2 in DBCtrlGrid) In record 1 the text is default In record 2, the text is 1 line smaller (with rvActionFontShrinkOnePoint) 2 line larger (with ...
by Bjoern
Mon Jul 20, 2015 2:18 pm
Forum: Support
Topic: remove 1 or more font styles from the set of styles
Replies: 5
Views: 24040

Hello,

this code works fine for removing styles of the font like bold, etc ... is there an easy way like this to remove ParaStyles like rvaCenter?

I've tried to modify your example to do that, but i'm not very familiar with the handling of paragraphs, all my attempts does't work.
by Bjoern
Mon Sep 22, 2014 11:00 am
Forum: Support
Topic: Bug with bullets in rtf-files
Replies: 4
Views: 17276

Thank you for the fast replay!

Is there a possibility to use the fixed code-parts in V13.0.5 or a workaround for this version?
by Bjoern
Thu Sep 18, 2014 9:46 am
Forum: Support
Topic: Bug with bullets in rtf-files
Replies: 4
Views: 17276

Bug with bullets in rtf-files

I think i have found a bug in the handling of bullets in rtf-files, i can reproduce it with the actual version of RichViewActionTest: 1. Make a new File, fill it with 3 lines, the first line must be so long that the editor must wrap the line: aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa ...
by Bjoern
Thu Jun 06, 2013 2:48 pm
Forum: Support
Topic: Replace color in all records fon a DBRichViewEdit
Replies: 2
Views: 12255

Sergey Tkachenko wrote:The code seems to be correct.
Thank you for looking at my code ... so i was able to search my error at other places. And found it, i picked the wrong table :-)
Now the replacing work fine.

Greetings
Bjoern
by Bjoern
Tue Jun 04, 2013 1:11 pm
Forum: Support
Topic: Replace color in all records fon a DBRichViewEdit
Replies: 2
Views: 12255

Replace color in all records fon a DBRichViewEdit

Hello, i should replace a text-color with another color in all records for a DBRichViewEdit. The data is stored in RTF-format. Here http://www.trichview.com/forums/viewtopic.php?t=612 is an example for changing the font-size globally, but i can't get it to work. If i run my routine, nothing happens ...
by Bjoern
Thu Jul 05, 2012 11:40 am
Forum: Support
Topic: Problem with variables
Replies: 20
Views: 65827

Hello, the insering of protected text is easy, i use procedure MyProcedure(MyInsertString : string); var OldStyleNo:Integer; function GetProtectedStyle(RVStyle: TRVStyle; StyleNo: Integer): Integer; var TextStyle: TFontInfo; begin TextStyle := TFontInfo.Create(nil); try TextStyle.Assign(RVStyle ...
by Bjoern
Thu Jun 28, 2012 3:22 pm
Forum: Support
Topic: Problem with variables
Replies: 20
Views: 65827

It's only Singleline and have no { or } inside, it's only one or two words, e.g. {script1 user2}, the real javascript is inserted after the RTF2HTML-converting
by Bjoern
Wed Jun 27, 2012 6:44 pm
Forum: Support
Topic: Problem with variables
Replies: 20
Views: 65827

Hello, But if using RTF is important, I can create a procedure for applying protection to text inside {}. did you ever wrote that procedure? ... because i have the same problem :-) TDBRichViewEdit with saving as RTF in the Database (because of RTF2HTML-converting later) and i must insert and protect ...
by Bjoern
Fri Jul 09, 2010 2:18 pm
Forum: Support
Topic: Protect HTML-Tags at the converting RTF->HTML
Replies: 4
Views: 17031

yes, it is RTF ... and with excluding the option after saving HTML it works fine.
Thank you for your support!
by Bjoern
Mon Jul 05, 2010 5:30 pm
Forum: Support
Topic: Protect HTML-Tags at the converting RTF->HTML
Replies: 4
Views: 17031

Hello Sergey, i've tried so, but i get a problem with my code, when i loop over the TextStyles to set +[rvteoHTMLCode] it clears my DBRichViewEdit after the first run. The code is procedure TMainForm.SpeedButtonTest2Click(Sender: TObject); var i: Integer; Stream: TStringStream; rv:TCustomRichView ...
by Bjoern
Thu May 20, 2010 5:34 pm
Forum: Support
Topic: Protect HTML-Tags at the converting RTF->HTML
Replies: 4
Views: 17031

Protect HTML-Tags at the converting RTF->HTML

My users enter text in a DBRichViewEdit which is stored in a database and then printed to a file as a part of a html-page. For this, i convert the RTF to HTML with function RTF2Html(rtf:string): string; var Stream: TStringStream; rv:TCustomRichView; begin rv:=TCustomRichView.Create(nil); rv.Style ...
by Bjoern
Wed May 12, 2010 12:33 pm
Forum: Support
Topic: Replacement for DBMemo.Font.Color / Visual disable Control?
Replies: 3
Views: 13698

I'll try this and to make the DBEdit.Color darker too when disabled.
Maybe something for the next version of TRichViewEdit, a property like .DisabledFontColor?
by Bjoern
Wed May 12, 2010 10:05 am
Forum: Support
Topic: Replacement for DBMemo.Font.Color / Visual disable Control?
Replies: 3
Views: 13698

Replacement for DBMemo.Font.Color / Visual disable Control?

I'm using a DBRichViewEdit (as a replacement of a DBMemo) and some DBEdits on a DBCtrlGrid. In some cases i must show the user that a data-record is disabled, so far i used the OnPaintPanel-Event of the DBCtrlGrid with if (MyDBCtrlGrid.DataSource.DataSet.FieldByName('disabled').AsBoolean) then begin ...