Search found 50 matches

by Martian
Wed Feb 15, 2017 3:28 am
Forum: Announcements
Topic: TRichView 16.13 - text fields, image deactivation, etc.
Replies: 7
Views: 3139

RVData.ItemLength does not exists anymore

RVData.ItemLength is not working anymore. This is from your count words example: function GetCharCount(RVData: TCustomRVData): Integer; var i,r,c:Integer; table:TRVTableItemInfo; begin Result:=0; for i:=0 to RVData.Items.Count-1 do if RVData.GetItemStyle(i)>=0 then // this is a text item Inc(Result,...
by Martian
Wed Feb 01, 2017 11:35 pm
Forum: Support
Topic: Flash videos stopped working in 16.12
Replies: 4
Views: 833

Re: Flash videos stopped working in 16.12

Still no idea what can interfere with flash and RVE :?
by Martian
Tue Jan 17, 2017 9:35 pm
Forum: Support
Topic: Flash videos stopped working in 16.12
Replies: 4
Views: 833

It's TRichViewEdit First of all it was http s :// But it's still doesn't work. Inserts black box with no controls but if I click on it I can hear sound from youtube video but no video. Moving cursor across my app window shows some parts of my toolbars and menus inside that black youtube box. Nothing...
by Martian
Sat Jan 14, 2017 2:34 am
Forum: Support
Topic: Flash videos stopped working in 16.12
Replies: 4
Views: 833

Flash videos stopped working in 16.12

Youtube and other flash videos inserted to document stopped working.
It shows some parts of my app interface instead. Looks like memory corruption or bad pointers.
I didn't change my code just updated.
by Martian
Wed Dec 28, 2016 8:53 am
Forum: Support
Topic: Spoilers
Replies: 1
Views: 629

Spoilers

Is there an example on how to implement spoilers?
I know there is a way to hide a text but I want to implement is as a spoiler.
I mean select text, press a button to hide it leaving [+]------ button (or picture) to show that spoiler.
by Martian
Wed Dec 28, 2016 12:05 am
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

Looks like I found the problem.
I didn't handle OnDropFile but OnDropFiles for even one file.
Now I just put DoDefault:=False in OnDropFile and everything else processed via OnDropFiles.
by Martian
Mon Dec 26, 2016 8:27 pm
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

I found why image from Firefox appears and then downloads. When I drag a picture from Firefox I get OnDropFile(s) event with FileName = "\Temp\randomname.bmp" I detect it and run LoadPictureFile procedure: procedure LoadPictureFile(FileName:String); const StoreFileName = True; var pic :TPicture; gr ...
by Martian
Mon Dec 26, 2016 7:39 pm
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

Just checked everything carefully. I was confused why RichViewActionTest inserts image from Firefox without downloading (no interfaces even assigned) and tried with Chrome and Edge: Firefox sends local file as \Temp\picture.bmp Chrome sends just link Edge like everything from Microsoft works strange...
by Martian
Mon Dec 26, 2016 7:55 am
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

Ok, works now but looks like RichViewActionTest doesn't redownloads dragged image. Do you have a demo how? Even rvoAssignImageFileNames is not enabled there. Do I still need to download that image? Because right now it inserts image (as I can see) then changes it to a placeholder image and then my a...
by Martian
Fri Dec 23, 2016 2:36 am
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

Any help?
by Martian
Thu Dec 22, 2016 8:39 am
Forum: Support
Topic: GoToBookmark by it's name
Replies: 1
Views: 594

GoToBookmark by it's name

What is the easiest way implement GoToBookmark(Target: String) ? I mean if I have an URL like "http://www.web.com#anchor4" I would like to use GoToBookmark("anchor4"). Your sample assigns ItemNo when enumerating list of all bookmarks but if I don't want to show a list? I mean local jump. I cannot le...
by Martian
Thu Dec 22, 2016 7:46 am
Forum: Support
Topic: Enum bookmarks manually
Replies: 2
Views: 759

Works fine. I didn't assign RVStyle to RVE.
by Martian
Thu Dec 22, 2016 7:05 am
Forum: Support
Topic: From "examples and demos": d&d of images
Replies: 18
Views: 3491

Ok it almost works but my ChangePicture procedure cannot find that image to replace placeholder because there is no URL attached to placeholder. Where should I check for it? When I import from HTML all imported images come with ItemURL set. RVData.GetItemExtraStrProperty(i, rvespImageFileName, ItemU...
by Martian
Wed Dec 21, 2016 9:16 am
Forum: Support
Topic: Enum bookmarks manually
Replies: 2
Views: 759

Enum bookmarks manually

Please help me fill my ComboBox with checkpoints from RVE. I checked BookmarkRVFrm.pas from Actions and did almost everything like there but it doesn't work. My EnumCheckpoints procedure never fires but I have several bookmarks in my document. First of all I need to load my RVF from DB to a new empt...
by Martian
Wed Dec 14, 2016 12:12 am
Forum: Examples, Demos
Topic: [Demo] Advanced RTF to PDF demo using LLPDFLib (open source)
Replies: 11
Views: 56155

One more thing. Is there a way to scale RVE images to make them fit to exported PDF?