Search found 40 matches

by Michael Pro
Thu May 08, 2008 3:48 am
Forum: Support
Topic: strange problem,the rvstyle font is automatically changed
Replies: 3
Views: 13872

Re: strange problem,the rvstyle font is automatically change

My richview's version is 1.9.46.In the Rvstyle of richvewedit and richview,I set the font to unicode: "rvs_Comm.TextStyles .Unicode := True;".Then,I set the fontname to "Tahoma". At first,the richvew and richviewedit are ok.But after running the pragramme at several times , the font's name becomes ...
by Michael Pro
Wed May 07, 2008 3:31 am
Forum: Support
Topic: TRVEditRVData.ApplyParaStyle feature?
Replies: 4
Views: 15211

Quite inconsistent, IMHO. Is there any logic that if I select only table, paragraph is applied to table, but if I select table+something, paragraph is applied to table cells? Yeah, I'm think so too :) MS-logic in this case looks strange :) Despite of this, I've changed sources in first style ...
by Michael Pro
Tue May 06, 2008 3:04 am
Forum: Support
Topic: TRVEditRVData.ApplyParaStyle feature?
Replies: 4
Views: 15211

In MS Word, even if you select table as a part of larger selection, applying paragraph attributes to the selection applies them to all table cells. Sorry, my fault. But in one case it won't work in MS Style - when you select only one table "outside" - in MS-style it won't affect para styles of cells
by Michael Pro
Mon Apr 28, 2008 5:49 am
Forum: Support
Topic: TRVEditRVData.ApplyParaStyle feature?
Replies: 4
Views: 15211

TRVEditRVData.ApplyParaStyle feature?

Greetings! Sergey, I've found some unintelligible moments in this routine. When we select table partially - and make parastyle conversion to partial selected table (not for all cells) - it works fine in part of if FPartialSelectedItem<>nil then begin FPartialSelectedItem ...
by Michael Pro
Fri Apr 25, 2008 3:13 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

I've found the reason - sometimes Self-editor stay unformatted, while in TopLevelEditor everything is ok.
I think, that I gonna rewrite code in few days - if the trouble stay, I'll write about it.
by Michael Pro
Thu Apr 24, 2008 10:03 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

Won't help (((
Sometimes RVData is in rvstForceStyleChangeEvent state - and it won't help ((((
by Michael Pro
Thu Apr 24, 2008 6:26 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

Not sure, but with this code my actions started worked fine if (rvstEditorUnformatted in RvData.State) or (rvstMakingSelection in RvData.State) or (rvstDeselecting in RvData.State) or (rvstStartingDragDrop in RvData.State) or (rvstForceStyleChangeEvent in RvData.State) or (rvstLineSelection in ...
by Michael Pro
Thu Apr 24, 2008 6:06 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

Or maybe it's simplier to check rvstEditorUnformatted flag in editor state before actions updating?
by Michael Pro
Thu Apr 24, 2008 3:05 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

Sergey Tkachenko wrote:Do you use RichView 10.0? It looks like all checks for the range of CaretDrawItemNo are already implemented.
Actually, no. We've bought 1.9 version on 3rd of March in 2006.
Maybe I could use OnAfterCaretMove event to make changes on my actions?
by Michael Pro
Tue Apr 22, 2008 7:46 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

Well, I think, that document in this case simply unformated - but why this happens, I couldn't say. I made some modifications - don't know, am I right... function TRVEditRVData.GetCurItemNo: Integer; {........................................} function IndexOf(obj: TObject): Integer; begin if not ...
by Michael Pro
Tue Apr 22, 2008 7:16 am
Forum: Support
Topic: List out of bounds Exception in TRVEditRVData.GetCurItemNo
Replies: 8
Views: 25955

List out of bounds Exception in TRVEditRVData.GetCurItemNo

Sergey, I've got one nasty bug - sometimes while drag'n'drop selected text I've got this exception.
I'm calling actions update on OnCaretMove event - and inside it I'm calling this function.
I'm making drag'n'drop in tables - and sometimes this bug happens.
Any ideas about that?

Michael.
by Michael Pro
Wed Feb 13, 2008 10:10 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 18576

Sergey, thanks for your help. Code won't help - well, it looks like it's internal problem of FastReport - I didn't find the reason, why your code couldn't work correctly - it means, that something wrong inside new FastReport versions. Anyway, everything works fine with one simple if-statement ...
by Michael Pro
Thu Feb 07, 2008 10:19 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 18576

Preview100PercentWidth/Height just perform some calculations, they should not affect coordinates. What is DrawTransparentPreview? Sorry, it was DrawPreview procedure. PrinterHandle := GetDC(0); EMF := TMetafile.Create; try EMFCanvas := TMetafileCanvas.Create(EMF, PrinterHandle); try with EMF do ...
by Michael Pro
Tue Feb 05, 2008 6:03 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 18576

Well, I've solved this problem - algorithmically - but the problem still exists somewhere in sources.
Best regards,
Michael.
by Michael Pro
Mon Feb 04, 2008 9:19 am
Forum: Support
Topic: Problems with TRvPrint
Replies: 5
Views: 18576

Problems with TRvPrint

I've got one nasty bug - I'm using class, inherited from TRichView, in FastReport ver. 4.0 - and for some purpose I'm drawing metafile with some procedures from TRvPrint. Actually, sometimes it works fine, but sometimes these functions: 1. DrawTransparentPreview 2. Preview100PercentWidth 3 ...