Search found 135 matches

by DickBryant
Tue Feb 08, 2011 2:33 pm
Forum: Support
Topic: Change Font FACE In Table Cell
Replies: 7
Views: 24553

Will send a 'before and after' set of two files via e-mail. Probably you're right about ANSI to Unicode being the cause of the growth, since the styles that 'remain' after the conversion are Unicode styles.
by DickBryant
Mon Feb 07, 2011 11:02 pm
Forum: Support
Topic: Change Font FACE In Table Cell
Replies: 7
Views: 24553

Just a question to make sure I'm not doing something wrong. When I do the conversion on my test file to force its current 26 text styles to be one of three styles by using FMain.RichViewEdit1.ApplyTextStyle([0,1 or 2]) on the selected columns the result seems fine and the number of styles after ...
by DickBryant
Mon Feb 07, 2011 9:45 pm
Forum: Support
Topic: Change Font FACE In Table Cell
Replies: 7
Views: 24553

Perfect! Just the functionality I was looking for!

Thanks Very Much :-)
by DickBryant
Mon Feb 07, 2011 7:13 pm
Forum: Support
Topic: Change Font FACE In Table Cell
Replies: 7
Views: 24553

Yes - for many operations.
by DickBryant
Mon Feb 07, 2011 7:05 pm
Forum: Support
Topic: Change Font FACE In Table Cell
Replies: 7
Views: 24553

Change Font FACE In Table Cell

This relates to the Change Font In Table Cell question - which had a relatively easy solution. Now I would like to add the option to change the text in each table cell to the same BASE (typeface and any font effects - e.g. Arial, bold) but retain the rest of the 'font effects' relating to each text ...
by DickBryant
Mon Feb 07, 2011 6:59 pm
Forum: Support
Topic: Change Font In Table Cell
Replies: 5
Views: 20287

Thank you for your comments, Sergey - I will clean up the code as you suggest. Not necessary to do multiple tables - there is only ONE master :-). Please see my new post, though - as I've decided it would be nice to allow the user to retain the 'font effects' and change only the typeface - this gets ...
by DickBryant
Mon Feb 07, 2011 6:16 pm
Forum: Support
Topic: Change Font In Table Cell
Replies: 5
Views: 20287

And the winner is: for i := Fmain.RichViewEdit1.ItemCount - 1 downto 0 do begin case Fmain.RichViewEdit1.GetItemStyle(i) of rvsTable: Table := TRVTableItemInfo(Fmain.RichViewEdit1.GetItem(i)); end; end; ItemNo := Fmain.RichViewEdit1.GetItemNo(table); Fmain.RichViewEdit1.BeginItemModify(ItemNo ...
by DickBryant
Mon Feb 07, 2011 5:00 pm
Forum: Support
Topic: Change Font In Table Cell
Replies: 5
Views: 20287

Change Font In Table Cell

Perhaps rather than showing bad solutions, I should just state the problem :-) I wish to apply an arbitrary existing style to the text items in a table cell - the text items can be of any style (and multiple styles) and be unicode or not and the existing style I want to apply may be Unicode or not ...
by DickBryant
Mon Feb 07, 2011 3:32 pm
Forum: Support
Topic: Continuing Problem with Modifying Table Fonts
Replies: 1
Views: 10170

Continuing Problem with Modifying Table Fonts

Hi Sergy, I've made some progress with this using the following code: //Check Unicode status of Question Default Font IsUnicode := FMain.RVStyleQ.TextStyles[1].Unicode; for i := 0 to MasterRVTable.RowCount - 1 do begin for j := 0 to MasterRVTable.Cells[i,1].ItemCount - 1 do begin CurrentItemStyle ...
by DickBryant
Fri Feb 04, 2011 8:09 pm
Forum: Support
Topic: Problem with crash after modifying fonts in a table
Replies: 3
Views: 16343

I've figured out how to AVOID changing the style if it will cause a problem by: //Check Unicode status of Question Default Font IsUnicode := FMain.RVStyleQ.TextStyles[1].Unicode; for i := 0 to MasterRVTable.RowCount - 1 do begin for j := 0 to MasterRVTable.Cells[i,1].ItemCount - 1 do begin ...
by DickBryant
Fri Feb 04, 2011 4:33 pm
Forum: Support
Topic: Problem with crash after modifying fonts in a table
Replies: 3
Views: 16343

It's not necessary to make the change undo-able. Could you give a short code example on how to avoid these: >> The error may occur when you assign 1 to: - StyleNo of non-text item (they must not be changed) - StyleNo of text item having different value of FMain.RichViewEdit1.Style.TextStyles[StyleNo ...
by DickBryant
Fri Feb 04, 2011 3:45 am
Forum: Support
Topic: Problem with crash after modifying fonts in a table
Replies: 3
Views: 16343

Problem with crash after modifying fonts in a table

I'm using this code to force all fonts in a given table column to a standard style (they may have been pasted from other sources, etc.): //Get the 'handle' of the inserted table for i := Fmain.RichViewEdit1.ItemCount - 1 downto 0 do begin case Fmain.RichViewEdit1.GetItemStyle(i) of rvsTable: Table ...
by DickBryant
Tue Dec 01, 2009 4:44 pm
Forum: Support
Topic: D2010 problem
Replies: 2
Views: 11864

I'll check out the Category portion of the code as you suggest. Further fooling with this shows that the quoted code will run repeatedly without issue IF similar code in the parser which parses the Answer rather than the Question is NOT run - it appears that this code somehow interferes with the ...
by DickBryant
Mon Nov 30, 2009 7:04 pm
Forum: Support
Topic: D2010 problem
Replies: 2
Views: 11864

D2010 problem

I'm trying to port very complex program to D2010 and it's not easy :-) I'm currently stuck on a RVE error called by this section of code: if ItsAQuestion then begin StrPCopy(Category, GetRVDataText(MasterRVTable.Cells[PairNumber-1,0])); MainText.Clear; Stream := TMemoryStream.Create; try ...
by DickBryant
Tue Mar 10, 2009 1:54 pm
Forum: Support
Topic: Generalizing a TRVAPopup Event
Replies: 0
Views: 15140

Generalizing a TRVAPopup Event

Hi Sergey, I got the RVAPopupMenu.OnPopup working fine with Live Spelling but only if I hard-code the rve involved - as it is in the Demo. I'm trying to generalize this so that it will work with multiple .rve's (I have many in my multi-tab editor) using the code below, but I get an Invalid Class ...