finding hte position in the field when backspaceKey hit
bonnmike at gmail.com
Mon Jun 10 18:27:12 EDT 2013
The problem seems to be that since its a combo box, the whole curent line
is considered selected no matter where the cursor is.
IF you put the cursor in the field of the combo box on any line and set
your backspace handler to get "the selectedtext" it returns the whole line
even if there is no hilite. The combo box seems pretty limited in some
ways due to its hybrid nature.
You might consider rolling your own. A field and an option button as a
custom control would probably work, and then you get access to all field
functionality. I'm sure there are ways, but not sure fighting with the
combobox will ever get you to your destination unless you dig into the
On Mon, Jun 10, 2013 at 4:07 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
> On Mon, Jun 10, 2013 at 2:57 PM, Dar Scott <dsc at swcp.com> wrote:
> > on backspaceKey
> > put the selectedChunk into field "log"
> > pass backspaceKey
> > end backspaceKey
> > However, I have a feeling I don't really understand what you are doing.
> You are getting a different result than I am, at least if I single-step.
> I get something like "char 900 to 915 of field 4" as the result of the
> And what I'm really after is the cursor position, in case someone
> clicked their way between characters 3 and 4 and deleted character 3.
> Hmm, maybe I could solve this with "dispatch backspaceKey to this
> card", and then it would go on, remove the character, and come back to
> me to handle? (or would the target change?)
> increment recursionLevel, and either pass backspaceKey if not yet
> recursed, and handle my own way if recursed?
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode