Search found 14 matches

by Ar4i
Tue Oct 04, 2016 8:19 am
Forum: Support
Topic: TcxDBTRichViewEdit and EditAutoheight
Replies: 3
Views: 12488

Sorry for my delayed answer, but if you just copy the code above and paste into an empty form then connect the grid to some kind of dataset and then run it and try editing a row.
I'll try to make example a bit later if that is not clear enough.
by Ar4i
Wed Aug 31, 2016 9:47 am
Forum: Support
Topic: TcxDBTRichViewEdit and EditAutoheight
Replies: 3
Views: 12488

TcxDBTRichViewEdit and EditAutoheight

Hello, being able to use RichView in DevEx grid is very useful for me. There is a strange bug with OptionsBehavior.EditAutoHeight = eahEditor or eahRow. In both cases when I try to edit a cell (TRichViewEdit type) it would display the RTF source instead of Rich text. Here is the example grid, attach...
by Ar4i
Fri Apr 03, 2009 9:14 am
Forum: Support
Topic: Delphi 2006 on project load error
Replies: 4
Views: 14937

Sorry for resurrecting this old topic, but I didn't find any viable solution anywhere, so this might help someone. I recently had to transfer a project from Delphi 7 to 2007 and got exactly the same error. After some experimenting I found the solution - just add RVPkgD?.dcp to dependencies of RVActi...
by Ar4i
Thu Jan 29, 2009 10:38 am
Forum: Support
Topic: TDBRichViewEdit - how to force it to post into the dataset
Replies: 5
Views: 14885

I always change things during before post event, there is no problem with that. Before post is just an event that would fire before the dataset stores data (e.g. immediately after calling dataset.post). It just seems that RichView does not want to store the changes made to RVData to the underlying f...
by Ar4i
Mon Jan 26, 2009 8:33 am
Forum: Support
Topic: GIF images in RichView
Replies: 4
Views: 13268

Sure I'll upgrade, the only thing that stopped me from doing it is that I have made an extensive changes to the richview actions and I don't want to do them again.
by Ar4i
Mon Jan 26, 2009 8:31 am
Forum: Support
Topic: How to transfer text between TRichView And TRichViewEdit
Replies: 10
Views: 24540

You can always use Insert**** instead of Load*** method, which will insert the contents instead of replacing them.
by Ar4i
Mon Jan 26, 2009 8:29 am
Forum: Support
Topic: TDBRichViewEdit - how to force it to post into the dataset
Replies: 5
Views: 14885

To be more specific, this code is attached to the BeforePost event of the query: procedure Txxx.qrBeforePost(DataSet: TDataSet); begin DoSomeChages(rv.RVData); rv.Format; rv.Invalidate; rv.Change; end; The changes made by the DoSomeChanges method won't be posted... and I need a way to do some change...
by Ar4i
Fri Jan 23, 2009 3:11 pm
Forum: Support
Topic: TRichViewXML : SaveToStream ... LoadFromStream
Replies: 15
Views: 38638

To make your code more readable warp it in CODE tags.

To solve your problem you can try using InsertXXXFromStream instread of LoadFromXXX. At least thi method works fine with not XML RichView components.
by Ar4i
Fri Jan 23, 2009 3:05 pm
Forum: Support
Topic: TDBRichViewEdit - how to force it to post into the dataset
Replies: 5
Views: 14885

TDBRichViewEdit - how to force it to post into the dataset

If I use some non edit changes e.g. things like SetXXXInfo and such how can Force a TDBRichViewEdit to post its contents into the DB? e.g. I need to manually add/delete one char to make it post the changes - it works this way, but I want to be able to do some changes and then post it w/o user intera...
by Ar4i
Fri Jan 23, 2009 8:08 am
Forum: Support
Topic: GIF images in RichView
Replies: 4
Views: 13268

I use the one provided here: http://www.trichview.com/resources/thirdparty/ Is there any way to make RTF files store the GIFs without converting or way to control that process via events or something? EDIT: According to http://www.biblioscape.com/rtf15_spec.htm (specification of the RTF format) it s...
by Ar4i
Thu Jan 22, 2009 4:40 pm
Forum: Support
Topic: GIF images in RichView
Replies: 4
Views: 13268

GIF images in RichView

I have a bit of a problem with GIF images in TRichViewEdit - when I insert .GIF image in any document it will get converted to BMP or something - e.g. I insert 10KB b/w GIF and as a result I get a file 200K RVF and 600K RTF! I'm using Delphi 7 and richview 1.9, is this a known issue or I'm missing s...
by Ar4i
Tue Apr 24, 2007 1:16 pm
Forum: Support
Topic: TDBRichEdit and replacing tags with text on save/load
Replies: 4
Views: 13735

Actually the user makes changes and I would only need to replace things like //query12232:field22313// with tag [1] for example (on load) and then replace tag [1] back to text //query12232:field22313// on post. I'll try to use OnLoadDocument for the first and then BeforePost query event for the seco...
by Ar4i
Tue Apr 24, 2007 10:16 am
Forum: Support
Topic: TDBRichEdit and replacing tags with text on save/load
Replies: 4
Views: 13735

I might not have used the appropriate term, by saving to DB I ment that I save the template as single RichView document into a single DB Field (e.g. I just use the data aware TDBRichEdit). So basicly I also need a way to modify the document before saving it (e.g. before posting to db). Actually it t...
by Ar4i
Tue Apr 24, 2007 8:06 am
Forum: Support
Topic: TDBRichEdit and replacing tags with text on save/load
Replies: 4
Views: 13735

TDBRichEdit and replacing tags with text on save/load

I have to make a template editor and I need to replace some text values with tags on load and then back to text on save (those text values represent certain queries and field in queries as well as some other things like cycles and formulaes that are not very user friendly). My question is what are t...