September 19, 2021, 11:42:21

Author Topic: Im trying to make an Interactive TextArea  (Read 2198 times)

Offline Hardcoal

  • Hero Member
  • *****
  • Posts: 734
  • nothing is personal
Im trying to make an Interactive TextArea
« on: February 11, 2018, 20:09:51 »
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..
« Last Edit: May 16, 2020, 19:14:39 by Hardcoal »
...

Offline Henri

  • Sr. Member
  • ****
  • Posts: 353
Re: Im trying to make an Interactive TextArea
« Reply #1 on: February 11, 2018, 21:35:36 »
You could use url link for that I think.

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

Offline Hardcoal

  • Hero Member
  • *****
  • Posts: 734
  • nothing is personal
Re: Im trying to make an Interactive TextArea
« Reply #2 on: February 11, 2018, 21:58:47 »
Ill Try.. Tnx
...

Offline TomToad

  • Hero Member
  • *****
  • Posts: 554
Re: Im trying to make an Interactive TextArea
« Reply #3 on: February 12, 2018, 10:31:55 »
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.

Offline Hardcoal

  • Hero Member
  • *****
  • Posts: 734
  • nothing is personal
Re: Im trying to make an Interactive TextArea
« Reply #4 on: February 12, 2018, 10:45:35 »
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
...

Offline _PJ_

  • Full Member
  • ***
  • Posts: 110
Re: Im trying to make an Interactive TextArea
« Reply #5 on: May 16, 2020, 16:30:35 »
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"

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal