Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 18-08-2017, 08:27   #1
Registered User

Join Date: May 2012
Posts: 1,184
Plugin: Adding waypoint with a hyperlink

Would appreciate a pointer to plugin code where a waypoint with link is created.

Squddio is not helping.

I tried this (no success with the link):
========================================
Plugin_Hyperlink* myLink = new Plugin_Hyperlink;
myLink->DescrText = _T("myLink");
myLink->Link = urlString;
myLink->Type = wxEmptyString;

Plugin_HyperlinkList* myLinkList;
myLinkList->Insert(myLink);

double dLat;
sCenterLat.ToDouble(&dLat);
double dLon;
sCenterLon.ToDouble(&dLon);

PlugIn_Waypoint * pPoint = new PlugIn_Waypoint(dLat, dLon,
"ident", "test","");

pPoint->m_HyperlinkList = myLinkList;

bool added = AddSingleWaypoint(pPoint, false);
=======================================

Thanks.
Mike
Rasbats is offline   Reply With Quote
Old 18-08-2017, 18:30   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Plugin: Adding waypoint with a hyperlink

Mike...

I looked at:
bool squiddio_pi::ShowPOI(Poi * wp) {
.
.
}


In your code, it may be somewhere else, but I do not see:

Plugin_HyperlinkList* myLinkList = new Plugin_HyperlinkList;

Dave
bdbcat is offline   Reply With Quote
Old 19-08-2017, 00:48   #3
Registered User

Join Date: May 2012
Posts: 1,184
Re: Plugin: Adding waypoint with a hyperlink

Dave,

Thanks for the suggestion but this does not work! Poi seems to use wxHyperlink/list (PoiMan.cpp/Poi.cpp) to get to a solution. Rather circuitous!

Mike
Rasbats is offline   Reply With Quote
Old 19-08-2017, 06:18   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Plugin: Adding waypoint with a hyperlink

Mike...

OK, I'll try to debug this later today. Should be able to step through it and find out where we drop the ball.

Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
plug

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Hyperlink Lightning Protector for Coax arjand Marine Electronics 7 10-06-2011 09:26
Waypoint Lists GordMay Navigation 0 04-11-2005 03:38

Advertise Here


All times are GMT -7. The time now is 02:35.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.