Im trying to make an Interactive TextArea

Started by Hardcoal, February 11, 2018, 20:09:51

Previous topic - Next topic

Hardcoal

What I mean is, that I want that when my mouse will be upon a certain Word on the text area..
It will turn into a hand Icon that indicates it can be pressed.

Any way to do such a thing?

It needs to recognize the word the mouse is above, for doing that..
Code

Henri

You could use url link for that I think.

-Henri
- Got 01100011 problems, but the bit ain't 00000001

Hardcoal

Code

TomToad

If you want an editable text area, might be a bit difficult with MaxGUI's limited version.  I tried messing around with Scintilla a while back, but it has a much steeper learning curve.  If you simply want to display text with clickable links, then an HTML view would probably work better than a text area.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Hardcoal

ok.. great advice..

Im only experimenting .. i dont really believe i will make a full IDE

but ill try to see what HTML viewing gives me, I can Get along with TextArea for the moment I think
Code

_PJ_

Crude workaround could involve:

1)  Identifying the possible words and their responses
2) Searching for those words as substrings within the value of TextAreaText$ and their positions
3) Using the TextAreaCursor return to identify if the cursor position lies within the words

Actual in-code checks may be processed in the reverse order from what is written here when the gadget is "Cicked"