Re: Control of Text Fields.

2021-11-04 Thread Roger Guay via use-livecode
Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator stack 
with forward and back arrow buttons and a Delete button. What's the script for 
these buttons?

Roger

> On Nov 4, 2021, at 5:53 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> Hi Roger,
> 
> I'm not sure I properly understand your question.
> 
> here's a code snippet the moves the insertion point (in this sample, typing 
> an 'f' moves it forward, 'b' moves it back). (Note this also works if there 
> is some text selected - it moves the insertion to just after the selection, 
> just like the arrow key does).
> 
>> on keydown p
>>local t
>>switch p
>>   case  "f"
>>  put word 4 of the selectedchunk into t
>>  select after char (t+1) of me
>>  break
>>   case "b"
>>  put word 2 of the selectedchunk into t
>>  select before char (t-1) of me
>>  break
>>end  switch
>> end keydown
> To then delete the char in front of it, you'd do something like
> 
>put empty into char (t+1) of me
> 
> Hope that's close enough to what you were asking, or at least gives you a 
> starting place  :-),
> 
> Alex.
> 
> On 04/11/2021 20:49, Roger Guay via use-livecode wrote:
>> I simply want to be able to move the insertion iBeam in a focused field left 
>> and right, one char at a time (just like the left and right arrows keys), 
>> and then to delete the char in front of it (just like the Delete key). The 
>> dictionary was again of no use to me. Can someone please provide sample 
>> scripts?
>> 
>> Thanks,
>> Roger
>> ___
>> 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


___
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: Control of Text Fields.

2021-11-04 Thread Alex Tweedly via use-livecode

Hi Roger,

I'm not sure I properly understand your question.

here's a code snippet the moves the insertion point (in this sample, 
typing an 'f' moves it forward, 'b' moves it back). (Note this also 
works if there is some text selected - it moves the insertion to just 
after the selection, just like the arrow key does).



on keydown p
   local t
   switch p
  case  "f"
 put word 4 of the selectedchunk into t
 select after char (t+1) of me
 break
  case "b"
 put word 2 of the selectedchunk into t
 select before char (t-1) of me
 break
   end  switch
end keydown

To then delete the char in front of it, you'd do something like

   put empty into char (t+1) of me

Hope that's close enough to what you were asking, or at least gives you 
a starting place  :-),


Alex.

On 04/11/2021 20:49, Roger Guay via use-livecode wrote:

I simply want to be able to move the insertion iBeam in a focused field left 
and right, one char at a time (just like the left and right arrows keys), and 
then to delete the char in front of it (just like the Delete key). The 
dictionary was again of no use to me. Can someone please provide sample scripts?

Thanks,
Roger
___
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: Control of Text Fields.

2021-11-04 Thread Roger Guay via use-livecode
I think you guys have accidentally hijacked my thread.

Roger

> On Nov 4, 2021, at 3:53 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Possibly memory corruption, but unlikely.  More likely a plugin or IDE 
> element with test code hanging around.
> 
> If only there was a way to trace message handlers so you could see where the 
> culprit lies...
> 
> http://lists.runrev.com/pipermail/use-livecode/2021-October/266125.html
> 
> :)
> 
> -- 
> Richard Gaskin
> Fourth World Systemsaccidentally
> 
> 
> Bob Sneidar wrote:
> 
>> I just searched for Carol in ANYTHING in ALL OBJECTS in my stack. The word 
>> Carol is in nothing. Memory corruption anyone???
>> Bob S
>>> On Nov 4, 2021, at 15:22 , Bob Sneidar via use-livecode >> lists.runrev.com> wrote:
>>> OK I tried sending put the selectedChunk in one second in an openField 
>>> handler in a field. What I get... (you may want to sit down for this...) 
>>> is: Bob
>>> Carol
>>> That exists precicely NO WHERE IN MY APPLICATION! Bob S
> 
> 
> ___
> 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: Control of Text Fields.

2021-11-04 Thread Richard Gaskin via use-livecode
Possibly memory corruption, but unlikely.  More likely a plugin or IDE 
element with test code hanging around.


If only there was a way to trace message handlers so you could see where 
the culprit lies...


http://lists.runrev.com/pipermail/use-livecode/2021-October/266125.html

:)

--
Richard Gaskin
Fourth World Systems


Bob Sneidar wrote:


I just searched for Carol in ANYTHING in ALL OBJECTS in my stack. The word 
Carol is in nothing. Memory corruption anyone???

Bob S



On Nov 4, 2021, at 15:22 , Bob Sneidar via use-livecode  wrote:

OK I tried sending put the selectedChunk in one second in an openField handler in a field. What I get... (you may want to sit down for this...) is: 


Bob
Carol

That exists precicely NO WHERE IN MY APPLICATION! 


Bob S



___
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: Control of Text Fields.

2021-11-04 Thread Bob Sneidar via use-livecode
I just searched for Carol in ANYTHING in ALL OBJECTS in my stack. The word 
Carol is in nothing. Memory corruption anyone???

Bob S


> On Nov 4, 2021, at 15:22 , Bob Sneidar via use-livecode 
>  wrote:
> 
> OK I tried sending put the selectedChunk in one second in an openField 
> handler in a field. What I get... (you may want to sit down for this...) is: 
> 
> Bob
> Carol
> 
> That exists precicely NO WHERE IN MY APPLICATION! 
> 
> Bob S
> 
> 
>> On Nov 4, 2021, at 13:49 , Roger Guay via use-livecode 
>>  wrote:
>> 
>> I simply want to be able to move the insertion iBeam in a focused field left 
>> and right, one char at a time (just like the left and right arrows keys), 
>> and then to delete the char in front of it (just like the Delete key). The 
>> dictionary was again of no use to me. Can someone please provide sample 
>> scripts?
>> 
>> Thanks,
>> Roger
> 
> 
> ___
> 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: Control of Text Fields.

2021-11-04 Thread Bob Sneidar via use-livecode
OK I tried sending put the selectedChunk in one second in an openField handler 
in a field. What I get... (you may want to sit down for this...) is: 

Bob
Carol

That exists precicely NO WHERE IN MY APPLICATION! 

Bob S


> On Nov 4, 2021, at 13:49 , Roger Guay via use-livecode 
>  wrote:
> 
> I simply want to be able to move the insertion iBeam in a focused field left 
> and right, one char at a time (just like the left and right arrows keys), and 
> then to delete the char in front of it (just like the Delete key). The 
> dictionary was again of no use to me. Can someone please provide sample 
> scripts?
> 
> Thanks,
> Roger


___
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


Control of Text Fields.

2021-11-04 Thread Roger Guay via use-livecode
I simply want to be able to move the insertion iBeam in a focused field left 
and right, one char at a time (just like the left and right arrows keys), and 
then to delete the char in front of it (just like the Delete key). The 
dictionary was again of no use to me. Can someone please provide sample scripts?

Thanks,
Roger
___
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: Win 11

2021-11-04 Thread Bob Sneidar via use-livecode
Hi Roland. I am wondering if you have had the opportunity to see LC running 
under MacOS? I have, and would like input from others using Win11 AND MacOS to 
chime in. 

Bob S


> On Nov 4, 2021, at 12:48 , R.H. via use-livecode 
>  wrote:
> 
> @Mike Kerner
> 
> I am using Win 11. I had no issues so far. All works as expected, but I
> have only be using the IDE.
> 
> Now, after switching to a 1 TB SSD and 16 MB Ram, also the script editor
> becomes usable under Windows. What a difference... Wow.
> 
> Have fun )
> 
> Roland
> __


___
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


Win 11

2021-11-04 Thread R.H. via use-livecode
@Mike Kerner

I am using Win 11. I had no issues so far. All works as expected, but I
have only be using the IDE.

Now, after switching to a 1 TB SSD and 16 MB Ram, also the script editor
becomes usable under Windows. What a difference... Wow.

Have fun )

Roland
___
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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Niggemann, Bernd via use-livecode
On 11/4/21 4:18 AM, Curry Kenworthy via use-livecode wrote:


I'm checking up on the Script Editor Disassociation Bug,
described in this thread:






I don't know if this is a dissociation of the Script Editor but bug 22555 can 
fool you into thinking that the script is compiled although it is not. It only 
occurs if you have "Live Errors" unchecked. It is in "Edit" -> "Options" when 
Script Editor is open.

https://quality.livecode.com/show_bug.cgi?id=22555

I think that one is easy to fix and a proposed fix is in the bug report and has 
been made a pull-request
https://github.com/livecode/livecode-ide/pull/2117
Of course my proposed fix might not be the right fix but it works.

Kind regards
Bernd
___
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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Curry Kenworthy via use-livecode



Paul:
> I have not noticed recently - not in the 9.6.x series.

Good!

Paul:
> probably some specific sequence of object selection actions

Right, so actions during selection and/or script saving.

Bob:
> I have not seen this to my remembrance.

Also good!

Mark:
> I don't think the absence of the problem
> necessarily means it's solved.

True. I'm happy no one has seen it lately;
hopefully it's gone and on to other bugs.

(But yeah, I still need to check with the client,
plus there was a possibly related bug still Open.)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
Christian LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Mark Wieder via use-livecode

On 11/4/21 4:18 AM, Curry Kenworthy via use-livecode wrote:


I'm checking up on the Script Editor Disassociation Bug,
described in this thread:




By way of not adding any more data points to your survey (sorry), I can 
say that I haven't seen this happening lately. But since I'm not sure 
what the conditions for invoking the bug were in the first place, I 
don't think the absence of the problem necessarily means it's solved.


So ¯\_(ツ)_/¯

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Bob Sneidar via use-livecode
I have not seen this to my remembrance. 

Bob S


> On Nov 4, 2021, at 04:18 , Curry Kenworthy via use-livecode 
>  wrote:
> 
> I'm checking up on the Script Editor Disassociation Bug,
> described in this thread:
> 
> 
> 
> Paul, Bob, Ben, Mark (and Hermann) commented  at the time,
> having experienced the same bug or something very similar.


___
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: Bug survey

2021-11-04 Thread Mike Kerner via use-livecode
No, this is something different. There was a bug report on mobile related
to event ordering, but I can't find it. I originally worked around it (like
the error causing silent aborts), but it just jumped back up at me, again,
and reminded me that I didn't put it on my list.

On Wed, Nov 3, 2021 at 5:48 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 11/3/21 4:03 PM, Mike Kerner via use-livecode wrote:
> > This is the bug where (on mobile) events don't necessarily thread, so if
> > you are in the middle of a handler and you try to jump out by branching
> to
> > another card (or handler) the current one will continue to execute. I
> think
> > it also included an issue with event timing being borked on mobile.
>
> I may not understand correctly, but in general this is normal behavior.
> When you go to another
> card or handler, those messages are sent and then the original handler
> continues. If you don't
> want a continuation, add an "exit" command after the "go".
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Paul Dupuis via use-livecode

On 11/4/2021 7:18 AM, Curry Kenworthy via use-livecode wrote:


I'm checking up on the Script Editor Disassociation Bug,
described in this thread:

 







But first: Has anyone seen this bug lately? (On LC 9.6.3 or later.)
Especially Paul, Bob, Ben, Mark?



I have not noticed recently - not in the 9.6.x series. I am not saying 
it might not be present, but I can not recall running into it since back 
in the 9.0.x time frame.


My vague recollection was I encountered it when the property inspector 
was open and the project browser was open and I selected a different 
object (although whether I selected the new object in the project 
browser or by clicking on the object in a stack I can't recall. As I 
said in my original post, it was intermittent at best, so it was 
probably some specific sequence of object selection actions that I was 
doing sometimes unconsciously that led to the disassociation. At any 
rate, it may be "fixed" in current releases.



___
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


Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Curry Kenworthy via use-livecode



I'm checking up on the Script Editor Disassociation Bug,
described in this thread:



Paul, Bob, Ben, Mark (and Hermann) commented  at the time,
having experienced the same bug or something very similar.

Me:

> sometimes the Script Editor window seems to disassociate
> from the object being edited. Thus after this bug is triggered,
> any typed script changes may not really be applied and saved,
> although they are shown as applied. Next LC session, those
> changes are gone; the stack code is still as it was
> prior to the bug being triggered and prior to editing the script.

Interestingly, the comments involved all IDE platforms!
I couldn't find a bug report on it; likely never had a recipe.
Still interested though! I'd like to recipe or report it.

But first: Has anyone seen this bug lately? (On LC 9.6.3 or later.)
Especially Paul, Bob, Ben, Mark?

My experience:

I saw it several times when screensharing with a client,
so I saw it happen on Mac. It may have happened to me once?
But I think the trigger required certain habits I don't have!
That is the key to a recipe; only those actions cause it.

Probably one's method of applying and saving changes
after editing a script; Apply first, versus just save,
from the SE (in the edited tab) or from the stack, etc.
The little details of how we Apply and Save.

For me the required actions would be like a "mistake"
since my habit and discipline usually avoid them.

So I'm going to keep an eye out for it,
but only if it still exists! (???)

(I can ask the client again too.)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
Christian LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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