Are Links in Textarea possibile ?

BlitzMax Forums/BlitzMax Beginners Area/Are Links in Textarea possibile ?

Dan(Posted 2016) [#1]
Hello, im searching for a way to display text with clickable links.

The functionality should be in the way the HTML links work.But without using the built in HTML viewer (because this depends on the internet explorer)

so lets say, i want to have a Clickable Link, like this one or more of them, which i could catch in the main loop, and process it further, deciding what will happen on each link.

is this possibile with the bmax language ? like in textarea ? codeboxes, scintilla or whatever else ?

Internet functionality is not needed (it is unwanted).


degac(Posted 2016) [#2]
Hi
TextArea gadget shows only 'text'.
Just thinking...A possibile solution is to find the cursor/line position in the textarea and from this 'interpret' if you 'clicked' on a certain word-link. (Another problem is what consider 'click' and what else 'move' the cursor inside...).
You should have a SHOWN textarea content and an INTERNAL textarea content (with some pseudo-char code to identify links etc).
Not so easy to manage.

I don't know if Scintilla has something built-in.


degac(Posted 2016) [#3]
Second idea (maybe simpler) : built your 'own' textarea gadget.

I think you don't want to 'type' in this gadget, just show your text & links.
It will be some labels and links 'managed' in a panel/region.


Dan(Posted 2016) [#4]
Yes, it should be a Text viewer with clickable links.


Dan(Posted 2016) [#5]
I have found an example, written in AutoIt language.

The behaviour i was looking for is: Richedit friendly name hyperlinks

I guess, ill stick with autoit for the project i was holding in Mind.