Hi!
We are testing your component. Great strides with your help. Thank you!. Using the demo version can include multiple buttons on a RVF file using ActionTest project. We managed to find all the buttons and their properties. Each button plays an audio file. The time of the audios are combined and displayed. But we can not update the time when a button is deleted, it is only possible after the reopening of the file.
Do you have any suggestions for how we can do to get the buttons on information at runtime. Is there any function that allows copying the entire contents of a root RVF document, so we can search your content?
Thank you!
Searching content in the root (source) of a file RFV
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
We would like to search within the RVF file.
The buttons are included within the TRichViewEdit, but were unable to locate an event to report that it has been deleted from TRichViewEdit. We use the example with wavbutton. So we would like to search within the RVF file.
As we are studying its component excuse our ignorance.
The buttons are included within the TRichViewEdit, but were unable to locate an event to report that it has been deleted from TRichViewEdit. We use the example with wavbutton. So we would like to search within the RVF file.
As we are studying its component excuse our ignorance.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
1) For maintaining a list of buttons in TRichView, you can use OnControlAction event: http://www.trichview.com/help/idh_trich ... ction.html
A button is added in the editor:
- when you add it in your code
- rvcaAfterRVFLoad
- rvcaMoveFromUndoList
A button is removed from the editor:
- rvcaDestroy
- rvcaMoveToUndoList
2) Actually, searching inside TRichView is much simpler than in a file, so, for a simplest solution, load RVF in TRichView and then enumerate its items.
RVF is a simple format, it is described here: http://www.trichview.com/help/rvf_specification.html
However, there is one thing that is not parsed so simple - tables. And controls may be inside table cells.
The table itself is saved in RVF using a trick - it is assigned as a property to a fake component, and then this component is saved to a stream. It may require some work to parse it.
I can suggest an alternative solution - store documents as XML, using RichViewXML http://www.trichview.com/resources/xml
A button is added in the editor:
- when you add it in your code
- rvcaAfterRVFLoad
- rvcaMoveFromUndoList
A button is removed from the editor:
- rvcaDestroy
- rvcaMoveToUndoList
2) Actually, searching inside TRichView is much simpler than in a file, so, for a simplest solution, load RVF in TRichView and then enumerate its items.
RVF is a simple format, it is described here: http://www.trichview.com/help/rvf_specification.html
However, there is one thing that is not parsed so simple - tables. And controls may be inside table cells.
The table itself is saved in RVF using a trick - it is assigned as a property to a fake component, and then this component is saved to a stream. It may require some work to parse it.
I can suggest an alternative solution - store documents as XML, using RichViewXML http://www.trichview.com/resources/xml