SyntaxBomb - Indie Coders

Languages & Coding => BlitzMax / BlitzMax NG => MaxGUI => Topic started by: Hardcoal on February 11, 2018, 20:09:51

Title: Im trying to make an Interactive TextArea
Post by: Hardcoal 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..
Title: Re: Im trying to make an Interactive TextArea
Post by: Henri on February 11, 2018, 21:35:36
You could use url link for that I think.

-Henri
Title: Re: Im trying to make an Interactive TextArea
Post by: Hardcoal on February 11, 2018, 21:58:47
Ill Try.. Tnx
Title: Re: Im trying to make an Interactive TextArea
Post by: TomToad 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.
Title: Re: Im trying to make an Interactive TextArea
Post by: Hardcoal 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
Title: Re: Im trying to make an Interactive TextArea
Post by: _PJ_ 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