Search found 15 matches

by Testomatico
Thu Sep 18, 2014 4:29 pm
Forum: Support
Topic: Save Image - Add Attributes (ID)
Replies: 1
Views: 9420

Save Image - Add Attributes (ID)

Hello,
is it possible to add additional attributes to the img-tag?
I need to set an id (<IMG id="blabla" ....>)

Best regards
Testo
by Testomatico
Fri Sep 12, 2014 12:40 pm
Forum: Support
Topic: RVRuler - Fixed size
Replies: 3
Views: 12971

Assigning RightMargin to RichViewEdit works fine but LeftMargin does not. I want that the allowed space, where the user can type in, is centered in the TRichViewEdit. Like this: _____________________ |---------__Text__---------| |---------_Bla bla ...
by Testomatico
Fri Sep 12, 2014 11:03 am
Forum: Support
Topic: RVRuler - Fixed size
Replies: 3
Views: 12971

RVRuler - Fixed size

Hello, I have to develop a input program for iOS. So the size of my TRichView needs to be fixed (only the width). I tried the following code but this doesnt work very well. RVRuler1.LeftMargin:= 3.7; RVRuler1.RightMargin:= 3.7; If I resize the form, the width of the ruler will be resized too. Is ...
by Testomatico
Thu Sep 04, 2014 1:04 pm
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

Ok no problem :)
Thank you!
by Testomatico
Thu Sep 04, 2014 12:12 pm
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

so if you want to resize the graphic instead, you can do it.
Ehm, ok. How can I now resize the graphic in the OnImageRequired2 event?
Assigning the parameteres will be ignored, manuel inserting isnt possible too. I don't see any other way to resize the image.
by Testomatico
Wed Sep 03, 2014 1:37 pm
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

So the following code should work, right?

Code: Select all

procedure TF_Main.RvHtmlImporter1ImageRequired2(Sender: TObject;
  const src: String; Width, Height: Integer; var Img: TGraphic);
begin
 Img := DownloadImage(src);
 Width:= 300;
 Height:= 300;
end;
But it does not :(
by Testomatico
Tue Sep 02, 2014 8:22 pm
Forum: Support
Topic: Import HTML code without converted special characters
Replies: 2
Views: 10964

Works like a charm! Thank you very much.
by Testomatico
Tue Sep 02, 2014 7:54 pm
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

In these events, you need to create a graphic object and assign it to TGraphic parameter, and it will be inserted.
Thats the point. How can I set the size of the graphic here?
SetCurrentItemExtraStrProperty will obviously not work.
by Testomatico
Tue Sep 02, 2014 12:58 pm
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

OK, that works now pretty good. But what if I want to paste html code including images from the clipboard? Then I need to implement the RvHtmlImporter1ImageRequired2 event. So, thats the actual problem. I can't insert images by myself in this event, beacuse it will do by itself. All I have to do is ...
by Testomatico
Tue Sep 02, 2014 10:59 am
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

Oh, I meant
"is it possible to paste an image from the internet into the RichViewEdit and resize it at the same time"
by Testomatico
Tue Sep 02, 2014 10:41 am
Forum: Support
Topic: Paste image from internet and resize
Replies: 16
Views: 48044

Paste image from internet and resize

Hi, is it possible to paste an image from the internet into the RichViewEdit? I'm using RichViewActions and Indy. Afaik I need to do something like this: info:= TRVGraphicItemInfo.CreateEx(Sender.RVData, gr, rvvaMiddle); info.ImageWidth:= 300; info.ImageHeight:= 300; if Sender.Style.Units=rvstuTwips ...
by Testomatico
Mon Sep 01, 2014 1:58 pm
Forum: Support
Topic: Import HTML code without converted special characters
Replies: 2
Views: 10964

Import HTML code without converted special characters

Hello, I'm using the RVHTMLImporter for importing HTML code. Now, I have the problem that the code I want to import includes non-converted special characters. For example: <p align=center>Test & Test</p> So, if I try to import the above code I will get a ';' at the end of the string (what's totally ...
by Testomatico
Sat Aug 30, 2014 11:25 am
Forum: Support
Topic: Set fixed font name - HTML export
Replies: 3
Views: 13008

Thanks! That works fine.
Is there any possibility to remove the whole 'face' attribute?
by Testomatico
Sat Aug 30, 2014 11:04 am
Forum: Support
Topic: Set fixed font name - HTML export
Replies: 3
Views: 13008

Set fixed font name - HTML export

Hello, my project requieres a fixed font face. So all fonts of the exported html code need to be, e.g., Arial (also if the texts are imported from a homepage). The dirty way how I could realize this would be replacing all face='*' attributes of the html code via ReplaceString(). But I'm sure there ...
by Testomatico
Sat Mar 22, 2014 7:50 pm
Forum: Support
Topic: Load HTML from String
Replies: 1
Views: 9064

Load HTML from String

Hello,
could someone tell me how to fill the RichViewEdit with a string containing html-code?

Thank you!

Best regards
Testo