December 03, 2020, 11:45:16 AM

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

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 484
Im trying to make an Interactive TextArea
« on: February 11, 2018, 08:09:51 PM »
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..
Go with the Flow

Offline Henri

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

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

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 484
Re: Im trying to make an Interactive TextArea
« Reply #2 on: February 11, 2018, 09:58:47 PM »
Ill Try.. Tnx
Go with the Flow

Offline TomToad

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

  • Sr. Member
  • ****
  • Posts: 484
Re: Im trying to make an Interactive TextArea
« Reply #4 on: February 12, 2018, 10:45:35 AM »
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
Go with the Flow

Offline _PJ_

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