SelectionChanged issue

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Jul 7 05:07:39 EDT 2005


Xavier,

Idle or mouseWithin are sent repeatedly by the engine.
The delay is fixed according to the idleRate property (200  
milliseconds by default) for both messages.
Good to know...
But here it does not interest me since I don't want a plugin to  
change this property within the user IDE and interfere with his/her  
own settings...

Le 7 juil. 05 à 10:53, xbury.cs at clearstream.com a écrit :

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


Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list