Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: embed an object into a richmemo or other component like devexpress, etc.


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Jul 24, 2017 11:35 AM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
al nickels

Posts: 173
Registered: 7/16/09
embed an object into a richmemo or other component like devexpress, etc.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 20, 2017 12:40 PM
I want to embed an object into a richmemoeditor. The object need to be something that I can reference underlying information. This will be like embedding a name object that I will use for sending e-mail to upon saving the information. The sending of e-mail will be from the delphi application as well. I need to trigger the insertion of the object via special character like FaceBook used the @ symbol. At some point on posting I need to be able to detect all of the objects and send e-mail, etc. as necessary.

Edited by: al nickels on Jul 20, 2017 12:49 PM
Roy Lambert

Posts: 1,063
Registered: 8/7/01
Re: embed an object into a richmemo or other component like devexpress, etc. [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 21, 2017 12:26 AM   in response to: al nickels in response to: al nickels
al

I'm not sure if you're asking for recommendations for a component or code to allow you to do this.If its the former have a look at WPTools. Expensive but very good.

Roy Lambert

Bernd Maierhofer

Posts: 161
Registered: 9/27/99
Re: embed an object into a richmemo or other component like devexpress,etc. [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 21, 2017 1:54 AM   in response to: al nickels in response to: al nickels
al nickels wrote:

I want to embed an object into a richmemoeditor. The object need to
be something that I can reference underlying information. This will
be like embedding a name object that I will use for sending e-mail to
upon saving the information. The sending of e-mail will be from the
delphi application as well. I need to trigger the insertion of the
object via special character like FaceBook used the @ symbol. At
some point on posting I need to be able to detect all of the objects
and send e-mail, etc. as neces sary.

Edited by: al nickels on Jul 20, 2017 12:49 PM

Do you want to insert an object (=properties, methods) or some kind of
tag, you later want to retrieve?

Maybe you can explain a bit, what you want to do + what hinders you.

Bernd

--
al nickels

Posts: 173
Registered: 7/16/09
Re: embed an object into a richmemo or other component like devexpress,etc. [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 24, 2017 7:23 AM   in response to: Bernd Maierhofer in response to: Bernd Maierhofer
I want to insert an object or some reference that I can enumerate later for action. Perhaps like tagging somebody in facebook, etc.
Bernd Maierhofer wrote:
al nickels wrote:

I want to embed an object into a richmemoeditor. The object need to
be something that I can reference underlying information. This will
be like embedding a name object that I will use for sending e-mail to
upon saving the information. The sending of e-mail will be from the
delphi application as well. I need to trigger the insertion of the
object via special character like FaceBook used the @ symbol. At
some point on posting I need to be able to detect all of the objects
and send e-mail, etc. as neces sary.

Edited by: al nickels on Jul 20, 2017 12:49 PM

Do you want to insert an object (=properties, methods) or some kind of
tag, you later want to retrieve?

Maybe you can explain a bit, what you want to do + what hinders you.

Bernd

--
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: embed an object into a richmemo or other component like devexpress, etc. [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 24, 2017 11:35 AM   in response to: al nickels in response to: al nickels
al nickels wrote:

I want to embed an object into a richmemoeditor.

Embedding objects in a RichEdit controls is possible, but not trivial.
You have to retreive the RichEdit's IRichEditOle interface using the
EM_GETOLEINTERFACE message, and then call the
IRichEditOle.InsertObject() method, which requires you to implement the
IOleObject, IStorage, and IOleClientSite interfaces for your object.

You are best off using a wrapper component for that, such as Robert
Dunn's TaeRichEdit component, or at least his TRichEditOle wrapper for
the standard TRichEdit component:

http://yacs.lebeausoftware.org

The object need to be something that I can reference underlying
information. This will be like embedding a name object that I will
use for sending e-mail to upon saving the information. The sending of
e-mail will be from the delphi application as well. I need to trigger
the insertion of the object via special character like FaceBook used
the @ symbol. At some point on posting I need to be able to detect
all of the objects and send e-mail, etc. as necessary.

That, on the other hand, is a bit easier (but still not trivial) to
implement without having to embed any OLE objects at all. Simply
create "Friendly Name" hyperlinks that have associated hidden text in
them. When a hyperlink is clicked, you can extract its associated text
and use it as needed:

RichEdit Friendly Name Hyperlinks
https://blogs.msdn.microsoft.com/murrays/2009/09/24/richedit-friendly-name-hyperlinks/

Adding true hyperlink support to TRichEdit
https://stackoverflow.com/questions/42532760/

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02