Page 1 of 1

Add GetGadgetCursor() and SetGadgetCursor()

Posted: Sat Feb 22, 2025 4:05 am
by Quin
The title sums this one up pretty well, I'm requesting two new functions:
  • Result.i = GetGadgetCursor(#Gadget): returns the position of the cursor in a String/EditorGadget.
  • SetGadgetCursor(#Gadget, Pos.i): set the cursor position in the given String/EditorGadget.

Re: Add GetGadgetCursor() and SetGadgetCursor()

Posted: Sat Feb 22, 2025 5:05 am
by BarryG
+1

Re: Add GetGadgetCursor() and SetGadgetCursor()

Posted: Sat Feb 22, 2025 5:17 am
by USCode
Or maybe for any relevant gadgets just add the appropriate cursor position attribute for existing functions:
GetGadgetAttribute()
SetGadgetAttribute()

Re: Add GetGadgetCursor() and SetGadgetCursor()

Posted: Mon Feb 24, 2025 12:46 am
by nsstudios
+1
Another essential func IMO.
USCode wrote: Sat Feb 22, 2025 5:17 am Or maybe for any relevant gadgets just add the appropriate cursor position attribute for existing functions:
GetGadgetAttribute()
SetGadgetAttribute()
Or that! That works
just as well. +1