Search found 272 matches

by standay
Tue May 05, 2026 3:23 pm
Forum: Support
Topic: Table Cell Style
Replies: 2
Views: 1496

Re: Table Cell Style

Sergey Tkachenko wrote: Tue May 05, 2026 9:15 am Sorry, table and cells styles are not implemented.
Use paragraph styles (StyleTemplates).
Can you give me some example code? I can't make any headway with it. I was trying to "spin through" the cells in the inserttable method but I can't get that to work.

Stan
by standay
Mon May 04, 2026 2:49 pm
Forum: Support
Topic: Table Cell Style
Replies: 2
Views: 1496

Table Cell Style

Hi Sergey,

Before I implemented styles in my rve app, if I inserted a table the cells would take on the font the rve was using. But after setting the rve to use styles, when I insert a table the cells use a defualt font. It looks like I need to set each cell to use my normal style. I have been ...
by standay
Sun May 03, 2026 1:43 pm
Forum: Support
Topic: Issue with Copying Images from RichView (RVF)
Replies: 10
Views: 5745

Re: Issue with Copying Images from RichView (RVF)

Sergey,

Yes, that worked.

Thanks

Stan
by standay
Sat May 02, 2026 2:55 pm
Forum: Support
Topic: Issue with Copying Images from RichView (RVF)
Replies: 10
Views: 5745

Re: Issue with Copying Images from RichView (RVF)

Hi Sergey,

The image copys are working but I'm getting a memory leak with SVG. I've used both CopyDef or CopyImage and get the same result. When running in my delphi 10.3 ide, I get a "cannot assign a TSkSvgGraphic to a TBitmap" error dialog:

Image7.png


And in madexcept, I get the following ...
by standay
Sat Apr 25, 2026 2:45 pm
Forum: Support
Topic: Issue with Copying Images from RichView (RVF)
Replies: 10
Views: 5745

Re: Issue with Copying Images from RichView (RVF)

Sergey, thanks for the simpler code. I found I had to do the following to handle svg images:

if gr.ClassName.tolower <> 'tsksvggraphic' then
begin
Clipboard.Assign(gr);
end
else
if not rv.CopyDef then //handle possible svg
begin
ShowMessage('Unable to copy data.');
end;

Is there a better ...
by standay
Thu Apr 23, 2026 2:12 pm
Forum: Support
Topic: Issue with Copying Images from RichView (RVF)
Replies: 10
Views: 5745

Re: Issue with Copying Images from RichView (RVF)

My guess is this may be by design. You can put something like this in your copy code or action. It's what I use:

var
gr: TGraphic;
ATag: TRVTag;
RVAlign: TRVVAlign;
s: TRVUnicodeString;
AData: THandle;
APalette: HPALETTE;

begin

if (rv.GetSelectedImage <> nil) then
begin

rv ...
by standay
Fri Mar 20, 2026 1:33 pm
Forum: Support
Topic: RvFontCombobox behavior with multiple fonts
Replies: 5
Views: 3451

Re: RvFontCombobox behavior with multiple fonts

I used this code to do something like that:

var
fi, fi2: TFontInfo;
i, FStart, FSOff, FEnd, FEoff: integer;
rv: TCustomRichViewEdit;
...

rv.GetSelectionBounds(FStart, FSOff, FEnd, FEoff, true);
fi := rv.Style.TextStyles[rv.GetItemStyle(FStart)];

for i := FStart to FEnd do
begin
fi2 ...
by standay
Sat Jan 31, 2026 5:55 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 12663

Re: Setting a Style

Sergey,

Yes, you were right this was working when I tried it in my small test app. What I wound up using in my main app was a TRVStyle not linked to any TRichView. That worked the way I wanted it to work.

Thanks

Stan
by standay
Wed Jan 28, 2026 1:50 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 12663

Re: Setting a Style


The best solution is style modification. If you want the default font "Georgia", specify it in the "Normal" styletemplate. In ActionTest demo, use the menu "Format | Styles", select "Normal (standard)", click the link "Edit" in the font section, and select "Georgia".

OK, is there a way to set ...
by standay
Tue Jan 27, 2026 7:39 pm
Forum: Support
Topic: Setting a Style
Replies: 4
Views: 12663

Setting a Style

Sergey,

Sorry, another styles question!

Say I paste some text in my rve, and it has the Georgia font. If I select the whole paragraph and then use the style combo to set a style, it sets the selcted style and keeps the Georgia font. That's what I want.

But if I select one word and then use the ...
by standay
Mon Jan 26, 2026 7:14 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 12512

Re: Hyperlink Underline Color

ValidTextPropertiesEditor was developed only for design-time support...It makes no sense to use ValidTextPropertiesEditor at runtime.
Yes, that explains what I was seeing, thanks.

You can see that it works in "Format | Styles" command.
Yes, I did something similar in my small test app and had ...
by standay
Mon Jan 26, 2026 6:24 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 12512

Re: Hyperlink Underline Color

OK, looks like changing the RVEFilervActionNew1 rvfiUnderlineColor setting in the design time ValidTextPropertiesEditor properties in my main app lets the underline color work.

Stan
by standay
Mon Jan 26, 2026 6:21 pm
Forum: Support
Topic: Reset StyleTemplates
Replies: 2
Views: 8492

Re: Reset StyleTemplates

OK, I'll try that.

Thanks Sergey

Stan
by standay
Mon Jan 26, 2026 5:24 pm
Forum: Support
Topic: Hyperlink Underline Color
Replies: 6
Views: 12512

Re: Hyperlink Underline Color

Just trying to get the underline color to change when I paste in a hyper link.

I made a small test program and if I change the rvfiUnderlineColor to true in the component properties of my small test app, the color changes as expected. If I don't change rvfiUnderlineColor in the properties and try ...
by standay
Sun Jan 25, 2026 9:22 pm
Forum: Support
Topic: Horizontal Line and Style
Replies: 1
Views: 9821

Horizontal Line and Style

Hi Sergey,

When I insert a break (horizontal line) I have to add an ApplyStyleTemplate(0) call after every InsertBreak call to keep the correct style name in the styles combo (otherwise it's blank when it should say "Normal"). It does this if I use the HLine rv action as well.

But, the ...