Re: Selecting text in non-focused field

2018-11-19 Thread Bob Sneidar via use-livecode
I have a FindBar "object" (group of objects) that I use for querying a sql database. I ues rawKeyUp and a delay to do what you are trying to do. I think I have a demo stack up too with a datagrid and sqlite database. Look for it under Robert Sneidar. Bob S > On Nov 19, 2018, at 14:02 ,

Re: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Thanks Brian. I want to have a flexible search capability and that is indeed one of the things that would be good to have. I have a feeling it is going to be a bit slow so will need some tricks or compromise. For instance, only search if no key pressed for .5 seconds, so it not interrupting

Re: Selecting text in non-focused field

2018-11-19 Thread Brian Milby via use-livecode
Are you meaning that you need to highlight text found in another field?   Easiest way to describe what I’m referring to is the LC dictionary.  If you type a term in the search box, the matches are highlighted yellow where they are found (syntax and synonym fields).  Implementation would be

Re: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Didn't know about foundChunk. Useful, thanks. :-) It is just one text field I am working on. On Mon, 19 Nov 2018 at 21:12, dunbarxx via use-livecode < use-livecode@lists.runrev.com> wrote: > Have you tried selecting the foundChunk? > > If you are going to write a routine that checks all the

Re: Selecting text in non-focused field

2018-11-19 Thread dunbarxx via use-livecode
Have you tried selecting the foundChunk? If you are going to write a routine that checks all the fields on a card and catalog them, you can avoid the standard "find" command, and roll your own. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

Re: Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Hi Craig Thanks for your time. I should have given more details... i am indeed using enterInField (actually returnInField), and the focus remains the search box I started with the Find command, but then changed to using matchChunk, because: - The Find command shows a thin black border that

Re: Selecting text in non-focused field

2018-11-19 Thread dunbarxx via use-livecode
Ah. Maybe the point is that you can continue typing, finding other strings as you go. OK. But my search field, with its "enterInField" handler: on enterinField find me end enterinField will find any text in any field, and continue to find as you either continue typing or delete what you

Re: Selecting text in non-focused field

2018-11-19 Thread dunbarxx via use-livecode
Hi. Not sure exactly what you mean. You have a ("search") field that you type into, and the text in that field is then found in another field? How different is that process from this? On a card with two fields, in fld 1 type some text that already exists in fld 2. Then in a button script: on

Selecting text in non-focused field

2018-11-19 Thread Kaveh Bazargan via use-livecode
Am I right that if a field is not focused on in a card, then the text in it cannot be selected? I have a search field that I type in and when I press enter, it finds the string in another text field. But when the search box is focused on again the selection goes. I want to be able to have the