SelectionChanged issue

xbury.cs at clearstream.com xbury.cs at clearstream.com
Thu Jul 7 04:53:00 EDT 2005


I would say to use the mousewithin (the howitzer canon) or an idle 
message...

Is the idle so bad?

on idle
  get the selchunk
  if it is empty or myfield is not in it then pass idle
end idle...

a millisecond trigger should do the trick too...

On 07/07/2005 10:49:55 use-revolution-bounces wrote:
>Hi Xavier,
>
>Not any message is sent by the engine when you just click anywhere in
>the text of a field.
>My question was:
>Is there a best way than using a pending message (kind of 75-mm gun
>to shoot a spider as we say in French -:) to know in real time if
>there is at least 1 selected char in a field and not only the
>insertion point blinking?
>At the moment I use a pending message which checks if word 4 of the
>selectedChunk >= word 2 of the selectedChunk
>I would find a light solution :-)
>
>Le 7 juil. 05 à 10:41, xbury.cs at clearstream.com a écrit :
>
>> Then cover all the events possible (closefield, enterfield, etc...)
>>
>> Dont forget to "pass" the events...
>>
>> It's the best way. Im now aware of any problems.
>>
>> One other way which i use in a plugin is to send repeated checks
>> with a
>> timed send message.
>>
>> cheers
>> Xavier
>>
>> On 07/07/2005 10:37:51 use-revolution-bounces wrote:
>>
>>> Hi Xavier,
>>>
>>> Thank you.
>>> You are right.
>>> But the problem is that I want to know that in real time to enable/
>>> disable a button :-)
>>>
>>> Le 7 juil. 05 à 10:34, xbury.cs at clearstream.com a écrit :
>>>
>>>
>>>> Just use the selectedchunk...
>>>>
>>>> You'll see the difference between one selected char and just an
>>>> insertion
>>>> point
>>>> when word 4 of the selchunk <= than word 2 of the selchunk. If i
>>>> remember
>>>> correctly.
>>>>
>>>
>>> Best Regards from Paris,
>>>
>>> Eric Chatonet.



-----------------------------------------
Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER



More information about the use-livecode mailing list