Textarea detect cursor movement

BlitzMax Forums/MaxGUI Module/Textarea detect cursor movement

slenkar(Posted 2008) [#1]
I display the current line when the textarea is the eventsource,
but moving the cursor with the mouse or keyboard isnt treated as an event.
How do I make it into an event?


jsp(Posted 2008) [#2]
Look up SetGadgetSensitivity()

[edit] An EVENT_GADGETSELECT event occurs whenever the cursor or selected text region is modified by the user. Did you try that one already?


slenkar(Posted 2008) [#3]
no not yet thanks


slenkar(Posted 2009) [#4]
I tried it but it didnt work.


grable(Posted 2009) [#5]
It does indeed work, as MaxIDE somehow manages to do just that.
Search the source of maxide for UpdateCursor() and you will find out how.


slenkar(Posted 2009) [#6]
they handle events manually in Maxide with pollsystem


jsp(Posted 2009) [#7]
TextArea with all events on:




grable(Posted 2009) [#8]
they handle events manually in Maxide with pollsystem

And how else are one to handle events? how exactly are you using maxgui?


slenkar(Posted 2009) [#9]
oh yeah sorry I was doing it wrong,
thanks for the help