Hi
Is there a insert method equivalent to the following append
link_tag = par->AppendNewObjectPair(wpobjHyperlink," WPCubed GmbH");
link_tag->Source = "http://www.wpcubed.com ";
I am guessing it has something to do with Cursor position in the Paragraph object but not sure. The new hyperlinks gets appended to the end of the paragraph rather than where the cursor is located!?
Builder C++ 6.0
WPTools 6.0
Thanks
#1
♥ 0
🔗
4.6k Views
4 links 2 users
read 1 min
AppendNewObjectPair is a low level method -
You can also use WPRichText.InputHyperlink if you want to insert at cursor position.
You can also create two TWPTextObj and insert them with
function TParagraph.Insert(index: Integer; const TxtObject: TWPTextObj; const CharAttr: Cardinal = 0; ObjChar: WideChar =
TextObjCode): Integer;
The closing need to use the same tag as the openig tag. This is done by
closing.SetTag(opening.NewTag);
#2
♥ 0
🔗
Hi,
I still need to verify a few things but as you stated the following method is doing exactly what I was looking for!
WPRichText1->InputHyperlin("testing", "http://www.wpcubed.com " );
Thanks
#3
♥ 0
🔗
This category is archived. No new posts are possible.