SyntaxBomb - Indie Coders
Languages & Coding => BlitzMax / BlitzMax NG => MaxGUI => Topic started 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..
You could use url link for that I think.
-Henri
Ill Try.. Tnx
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.
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
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"