Re: select after text

2012-01-29 Thread Mark Schonewille
Hi,

It isn't a problem of delay but a problem of order. You want to make sure that 
selecting the text is the last thing that happens, e.g. after instead of before 
the engine focuses on the first field.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 29 jan 2012, at 09:49, Serge Brami wrote:

> Thanks 
> I have tried the same thing in a simple test stack,  it is the same thing , 
> it works in fact only if i open the field clicking inside after the text , 
> but if i click   before or into the text the insertion point is put 
> at the loc of the click .
> 
> I think  Mark is right  its a problem of delay
> I am going to try
> 
> Thanks 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after text

2012-01-29 Thread Serge Brami
Thanks 
I have tried the same thing in a simple test stack,  it is the same thing , it 
works in fact only if i open the field clicking inside after the text , but if 
i click   before or into the text the insertion point is put 
at the loc of the click .

I think  Mark is right  its a problem of delay
I am going to try

Thanks 
Le 28 janv. 2012 à 19:56, Phil Davis a écrit :

> Wrong - autoHilite doesn't make a difference.
> 
> Serge, your script works fine in a simple test stack, so I'm guessing some 
> other script is getting in the way. Is that possible?
> 
> Phil
> 
> 
> On 1/28/12 12:07 AM, Phil Davis wrote:
>> Is the autoHilite of the field is turned on? That might make a difference.
>> 
>> Phil Davis
>> 
>> 
>> On 1/27/12 11:17 PM, Serge Brami wrote:
>>> This script in a focusable and not locked  field :
>>> 
>>> on openfield
>>>put the long date after me
>>>select after text of me
>>> end openfield
>>> 
>>> 
>>> simple but doesn't work : the insertion point is never placed at the end of 
>>> the text ...
>>> any idea ?
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
> 
> -- 
> Phil Davis
> 
> PDS Labs
> Professional Software Development
> http://pdslabs.net
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after text

2012-01-28 Thread stephen barncard
Mark's script works perfectly, except I changed 'put the long date after me'
to into "put the long date into me" otherwise one gets two entries next
time.

on openField

  send "selectAfterMe" to me in 0 millisecs

end openField


on selectAfterMe

  put the long date into me

  select after text of me

end selectAfterMe


Livecode is so fast on some machines that one needs some delay that send
can provide.



On 28 January 2012 10:56, Phil Davis  wrote:

> Wrong - autoHilite doesn't make a difference.
>
> Serge, your script works fine in a simple test stack, so I'm guessing some
> other script is getting in the way. Is that possible?
>
> Phil
>
>
>
> On 1/28/12 12:07 AM, Phil Davis wrote:
>
>> Is the autoHilite of the field is turned on? That might make a difference.
>>
>> Phil Davis
>>
>>
>> On 1/27/12 11:17 PM, Serge Brami wrote:
>>
>>> This script in a focusable and not locked  field :
>>>
>>> on openfield
>>>put the long date after me
>>>select after text of me
>>> end openfield
>>>
>>>
>>> simple but doesn't work : the insertion point is never placed at the end
>>> of the text ...
>>> any idea ?
>>> __**_
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>>
>>>
>>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after text

2012-01-28 Thread Phil Davis

Wrong - autoHilite doesn't make a difference.

Serge, your script works fine in a simple test stack, so I'm guessing some other 
script is getting in the way. Is that possible?


Phil


On 1/28/12 12:07 AM, Phil Davis wrote:

Is the autoHilite of the field is turned on? That might make a difference.

Phil Davis


On 1/27/12 11:17 PM, Serge Brami wrote:

This script in a focusable and not locked  field :

on openfield
put the long date after me
    select after text of me
end openfield


simple but doesn't work : the insertion point is never placed at the end of 
the text ...

any idea ?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after text

2012-01-28 Thread Mark Schonewille
Serge,

on openField
  send "selectAfterMe" to me in 0 millisecs
end openField

on selectAfterMe
  put the long date after me
  select after text of me
end selectAfterMe

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 28 jan 2012, at 08:17, Serge Brami wrote:

> This script in a focusable and not locked  field :
> 
> on openfield
>   put the long date after me
>   select after text of me
> end openfield
>   
> 
> simple but doesn't work : the insertion point is never placed at the end of 
> the text ...
> any idea ?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after text

2012-01-28 Thread Phil Davis

Is the autoHilite of the field is turned on? That might make a difference.

Phil Davis


On 1/27/12 11:17 PM, Serge Brami wrote:

This script in a focusable and not locked  field :

on openfield
put the long date after me
select after text of me
end openfield


simple but doesn't work : the insertion point is never placed at the end of the 
text ...
any idea ?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


select after text

2012-01-27 Thread Serge Brami
This script in a focusable and not locked  field :

on openfield
   put the long date after me
   select after text of me
end openfield


simple but doesn't work : the insertion point is never placed at the end of the 
text ...
any idea ?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode