SelectionChanged issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

SelectionChanged issue

Eric Chatonet
Hi all,

When you click anywhere in the text of an editable field,  
selectionChanged is not sent by the engine (part of this behaviour is  
bugzilla #1057).
A combination of selectionChanged and rawKeyUp does not allow to trap  
all events.
So here is a best way than using a pending message (kind of 75-mm gun  
to shoot a spider as we say in French -:) to know if there is at  
least 1 selected char in a field and not only the insertion point  
blinking?

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        [hidden email]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

xbury.cs
Hi Eric

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.

Hope that answers it...

On 07/07/2005 10:30:48 use-revolution-bounces wrote:

>Hi all,
>
>When you click anywhere in the text of an editable field,
>selectionChanged is not sent by the engine (part of this behaviour is
>bugzilla #1057).
>A combination of selectionChanged and rawKeyUp does not allow to trap
>all events.
>So here is a best way than using a pending message (kind of 75-mm gun
>to shoot a spider as we say in French -:) to know if there is at
>least 1 selected char in a field and not only the insertion point
>blinking?
>
>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        [hidden email]/
>Phone        33 (0)1 43 31 77 62
>Mobile        33 (0)6 20 74 50 86
>----------------------------------------------------------------
>
>_______________________________________________
>use-revolution mailing list
>[hidden email]
>Please visit this url to subscribe, unsubscribe and manage your
subscription
>preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution


-----------------------------------------
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
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

Eric Chatonet
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, [hidden email] 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.
----------------------------------------------------------------
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        [hidden email]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

xbury.cs
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, [hidden email] 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.
>----------------------------------------------------------------
>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        [hidden email]/
>Phone        33 (0)1 43 31 77 62
>Mobile        33 (0)6 20 74 50 86
>----------------------------------------------------------------
>
>_______________________________________________
>use-revolution mailing list
>[hidden email]
>Please visit this url to subscribe, unsubscribe and manage your
subscription
>preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution


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

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

Eric Chatonet
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, [hidden email] 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, [hidden email] 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.
>> ----------------------------------------------------------------
>> 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        [hidden email]/
>> Phone        33 (0)1 43 31 77 62
>> Mobile        33 (0)6 20 74 50 86
>> ----------------------------------------------------------------
>>
>> _______________________________________________
>> use-revolution mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>>
> subscription
>
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
> -----------------------------------------
> 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
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



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        [hidden email]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

xbury.cs
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, [hidden email] 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, [hidden email] 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

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Reply | Threaded
Open this post in threaded view
|

Re: SelectionChanged issue

Eric Chatonet
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, [hidden email] 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, [hidden email] 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, [hidden email] 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        [hidden email]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution