Assignment of RV to RV
Posted: Sun Oct 30, 2005 3:45 pm
Hello:
I am new, but I have spent the entire morning pouring over the help file and this forum. I cannot find anything that details how to assign a RichView to another RichView or descendant.
I have a message viewer; it consists of (among other controls) a TdbRichViewEdit. This is connected to an Access database; the specific field is an OLE data type.
What I have in mind is the following: When a user wants to create a new message, I want to pop up a full editor (something like the ActionTest demo, using a TRichViewEdit) and allow the user to edit it in RVF mode. Then, if the user wants to save off the message to send it, I want to put the data base into append mode, move the message from the editor to the TdbRichViewEdit and then post to the database.
Since I am new to this control set (I only bought it yesterday), there may be an easier way to do this. I tried using TMemory Stream, writing the editor to the stream, and then reading it in to the dbRichViewEdit. The save returns a failure, however, without explaining why.
Ideally, I would like to find something like:
dbMemo.Items.Assign(editor.Items);
Thanks for the help
jamie
I am new, but I have spent the entire morning pouring over the help file and this forum. I cannot find anything that details how to assign a RichView to another RichView or descendant.
I have a message viewer; it consists of (among other controls) a TdbRichViewEdit. This is connected to an Access database; the specific field is an OLE data type.
What I have in mind is the following: When a user wants to create a new message, I want to pop up a full editor (something like the ActionTest demo, using a TRichViewEdit) and allow the user to edit it in RVF mode. Then, if the user wants to save off the message to send it, I want to put the data base into append mode, move the message from the editor to the TdbRichViewEdit and then post to the database.
Since I am new to this control set (I only bought it yesterday), there may be an easier way to do this. I tried using TMemory Stream, writing the editor to the stream, and then reading it in to the dbRichViewEdit. The save returns a failure, however, without explaining why.
Ideally, I would like to find something like:
dbMemo.Items.Assign(editor.Items);
Thanks for the help
jamie