Add GetGadgetCursor() and SetGadgetCursor()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Add GetGadgetCursor() and SetGadgetCursor()

Post 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.
BarryG
Addict
Addict
Posts: 4122
Joined: Thu Apr 18, 2019 8:17 am

Re: Add GetGadgetCursor() and SetGadgetCursor()

Post by BarryG »

+1
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Add GetGadgetCursor() and SetGadgetCursor()

Post by USCode »

Or maybe for any relevant gadgets just add the appropriate cursor position attribute for existing functions:
GetGadgetAttribute()
SetGadgetAttribute()
nsstudios
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: Add GetGadgetCursor() and SetGadgetCursor()

Post 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
Post Reply