C API question - RichText & Hotspots

Can one of the experts point me to what C-API call I might use to access the http:// associated with a URL hotspot link.

for example if a URL hotspot is Notes Forum and contains http://www.notes.net - how would I access both the Label/text and the http://

I can access the hotspot using XML/DXL and using the “URLLINK” element search and access the data. What is the C-API equivalent and are there any samples that I could be pointed to.

Subject: C API question - RichText & Hotspots

It is a bit complicated. There are at least four different records that could hold URL links,and they are sometimes reduntantally defined and may have different variants. The types to look for are SIG_CD_HOTSPOTBEGIN or SIG_CD_V4HOTSPOTBEGIN, which are hotspots and which would have the URL information either as a string or a formula after the CDHOTSPOTBEGIN structure, and SIG_CD_HREF or SIG_CD_TABLECELL_HREF, which are CDRESOURCE records with the URL link set after the structure.

Now, if you just want to query the URL link, find one of these for each hotspot and you can pull it out. If you want to modify them, that will take a bunch more work since you will have to copy the CD records to buffers and delete and save the buffers to make the changes. You might be better off with the C++ API, excpet that I think it has bugs in this areas (URL links), probably because they don’t handle all the variations properly.

As an alternative approach, I know you have looked at our Midas Rich Text LSX before, and IBM uses it a lot, so you could also go that direction. Midas is also available as a C++ library now, so you could build this in at as low a level as you need. With Midas, you could get or set these values and let Midas handle all the ugly, but it is a commercial product, yada, yada, yada.