Re: Control of Text Fields.

2021-11-10 Thread Richmond via use-livecode
It's a new one to me as well. Richmond. On 10.11.21 16:28, Alex Tweedly via use-livecode wrote: "focusedObject" - wow, who knew ?  :-) So it's been helpful for me. (Some day I really will read the dictionary thoroughly). Alex. On 10/11/2021 03:38, Roger Guay via use-livecode wrote: Alex

Re: Control of Text Fields.

2021-11-10 Thread Alex Tweedly via use-livecode
"focusedObject" - wow, who knew ? :-) So it's been helpful for me. (Some day I really will read the dictionary thoroughly). Alex. On 10/11/2021 03:38, Roger Guay via use-livecode wrote: Alex and Richmond, This discussion has been very helpful. Thank you! Please see my latest post on the

Re: Control of Text Fields.

2021-11-09 Thread Roger Guay via use-livecode
Alex and Richmond, This discussion has been very helpful. Thank you! Please see my latest post on the forums where I offer my Formulator stack that seems to work, partly I think because I don’t lock the text of the multiple fields in my stack. Who woulda thunk?

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 11:36, Richmond via use-livecode wrote: No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7=36444 PLEASE, feel free to pull the thing to bits. I don't want to "pull the thing to bits". Like you, I enjoy seeing

Re: Control of Text Fields.

2021-11-07 Thread Richmond via use-livecode
No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7=36444 PLEASE, feel free to pull the thing to bits. Love, Richmond. On 7.11.21 13:20, Alex Tweedly via use-livecode wrote: On 07/11/2021 09:01, Richmond via use-livecode wrote:

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 09:01, Richmond via use-livecode wrote: I did not mean "competing" in the sense of "b*gger you", I meant it in the sense of healthy competition. Yeah, so did I. And if it came across any other way, then I wholeheartedly apologise. Sorry Richmond. Alex.

Re: Control of Text Fields.

2021-11-07 Thread Richmond via use-livecode
I did not mean "competing" in the sense of "b*gger you", I meant it in the sense of healthy competition. "But having said that:  your "left-arrow' emulation gets it wrong if there is a chunk selection active." Quite possible as I spent about 15 minutes on that yesterday between raking up

Re: Control of Text Fields.

2021-11-06 Thread Alex Tweedly via use-livecode
On 06/11/2021 19:04, Richmond via use-livecode wrote: My competing version is now "up": https://forums.livecode.com/viewtopic.php?f=7=36444=210241#p210241 Richmond. Don't you mean "my cooperating version ..."; surely the use-list is about helpful cooperatin and collaborative suggestions,

Re: Control of Text Fields.

2021-11-06 Thread Richmond via use-livecode
My competing version is now "up": https://forums.livecode.com/viewtopic.php?f=7=36444=210241#p210241 Richmond. On 5.11.21 23:08, Alex Tweedly via use-livecode wrote: On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you

Re: Control of Text Fields.

2021-11-05 Thread Roger Guay via use-livecode
Thank you so much, Alex. This indeed does the trick. And thanks also to Richmond and Klaus for spending time on this. Roger > On Nov 5, 2021, at 2:08 PM, Alex Tweedly via use-livecode > wrote: > > > On 05/11/2021 20:18, Roger Guay via use-livecode wrote: >> Alex, I did not see that and

Re: Control of Text Fields.

2021-11-05 Thread Klaus major-k via use-livecode
Hi Roger, > Am 05.11.2021 um 21:58 schrieb Roger Guay via use-livecode > : > > Is that unicode? If so how do I use it? Never done that before. no, that is the RAWKEY code for that erm. key. :-) Use it in a "rawkeydown/up" handler. > Roger > >> On Nov 5, 2021, at 12:02 PM, Richmond via

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger Here it is again, below. Or download the sample stack at https://tweedly.org/downloads/calcbuttons.livecode  - not as pretty as

Re: Control of Text Fields.

2021-11-05 Thread Roger Guay via use-livecode
Is that unicode? If so how do I use it? Never done that before. Roger > On Nov 5, 2021, at 12:02 PM, Richmond via use-livecode > wrote: > > Then, surely you want to implement the FORWARD delete key: 65535 ___ use-livecode mailing list

Re: Control of Text Fields.

2021-11-05 Thread Roger Guay via use-livecode
Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger > On Nov 5, 2021, at 12:49 PM, Alex Tweedly via use-livecode > wrote: > > Hi Roger. Don't know if you've seen the script I posted around 6 hour ago > ("expanded snippet"). > > It does the

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
Hi Roger. Don't know if you've seen the script I posted around 6 hour ago ("expanded snippet"). It does the correct forward / backward key movements, and also implements both "backspace" (delete the char to the left of the iBeam) and "delete" (remove the char to the right of the ibeam) as

Re: Control of Text Fields.

2021-11-05 Thread Richmond via use-livecode
On 5.11.21 20:37, Roger Guay via use-livecode wrote: Very good, Richmond. It’s impressive how quickly you piss around! And, it’s close but no cigar . The arrow keys on the keyboard move the ibeam in a field w/o highlighting any text. And, the Delete key deletes the char in front of the

Re: Control of Text Fields.

2021-11-05 Thread Roger Guay via use-livecode
Very good, Richmond. It’s impressive how quickly you piss around! And, it’s close but no cigar . The arrow keys on the keyboard move the ibeam in a field w/o highlighting any text. And, the Delete key deletes the char in front of the iBeam. I thought this would be easy to duplicate in LC, but

Re: Control of Text Fields.

2021-11-05 Thread Richmond via use-livecode
Pissed around a bit: https://forums.livecode.com/viewtopic.php?f=7=36444 Love, Richmond. On 5.11.21 15:59, Roger Guay via use-livecode wrote: I want them to do exactly the same thing that the keyboard keys do!! IOW, I want to emulate the delete key and the back and forward keys. Roger On

Re: Control of Text Fields.

2021-11-05 Thread Richmond via use-livecode
Why do you need to emulate them? Will you NOT have access to a physical keyboard? Here's the script of a stupid button to DELETE one number in a calculator read-out: Richmond. On 5.11.21 15:59, Roger Guay via use-livecode wrote: I want them to do exactly the same thing that the keyboard

Re: Control of Text Fields.

2021-11-05 Thread Richmond via use-livecode
I am sorry for that misunderstanding: I had a fairly fixed idea of what constituted a calculator in my head, and what you seem to want with your back, forward and delete keys seems more "word-processory". Richmond. On 5.11.21 15:59, Roger Guay via use-livecode wrote: I want them to do

Re: Control of Text Fields.

2021-11-05 Thread Roger Guay via use-livecode
I want them to do exactly the same thing that the keyboard keys do!! IOW, I want to emulate the delete key and the back and forward keys. Roger > On Nov 5, 2021, at 12:33 AM, Richmond Mathewson via use-livecode > wrote: > > Surely the script depends on what you want those buttons to do. > >

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
OK, so I was close, but didn't get the cigar. Here's an expanded snippet. The input is in a field called "fInput", the buttons are all in a group, and handled by the group script (saves having many tiny almost identical scripts). The script  uses the name of the target - but since I would

Re: Control of Text Fields.

2021-11-05 Thread Richmond Mathewson via use-livecode
Surely the script depends on what you want those buttons to do. On Fri, 5 Nov 2021 03:41 Roger Guay via use-livecode, < use-livecode@lists.runrev.com> wrote: > Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator > stack with forward and back arrow buttons and a Delete

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

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

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

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

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

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

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