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
underlying stuff.


On Mon, Jun 10, 2013 at 4:07 PM, Dr. Hawkins <[email protected]> wrote:

> On Mon, Jun 10, 2013 at 2:57 PM, Dar Scott <[email protected]> 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
> selectedChunk.
>
> 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
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to