selectedChunk always empty?
stephen barncard
stephenREVOLUTION2 at barncard.com
Sun Oct 10 14:42:34 EDT 2010
perhaps you are defeating your selection by clicking a button or using the
message box
this works from the multi-line message box:
*select text of fld "Field" of card id 1002 of stack "Untitled 1"*
*put the selectedchunk*
if you put this into the script of a button
*on mousedown*
* put the selectedChunk*
*end mousedown*
then the selection one makes by hand will remain and the selectedchunk will
be placed in the message box output:
char 1 to 22 of field 1
if the "selection" is a blinking cursor then the cursor position will be put
into the message box output:
char 23 to 22 of field 1
if neither the selection made by hand or a blinking cursor is happening,
then empty is returned:
On 10 October 2010 10:50, stephen barncard
<stephenREVOLUTION2 at barncard.com>wrote:
> what is it supposed to return, all of the text in the field?
>
>
> On 10 October 2010 10:34, Inselfan <baleareninsel at gmx.net> wrote:
>
>>
>> Hola Stephen,
>>
>> Thanks for this, but: Yes I have a blinking cursor and YES this
>> (Selectedchunk) works perfect with the same text-field and another button.
>> It is really 1:1
>>
>> Must be something else
>>
>> Kind regards
>>
>> Horst
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/selectedChunk-always-empty-tp2970443p2970459.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> --
>
>
>
> Stephen Barncard
> San Francisco Ca. USA
>
> more about sqb <http://www.google.com/profiles/sbarncar>
>
>
--
Stephen Barncard
San Francisco Ca. USA
more about sqb <http://www.google.com/profiles/sbarncar>
More information about the use-livecode
mailing list