Re: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
Richard that script snippet actually helped me solve a different problem. I remember now why I was using traversalOn instead of lockText. I have certain fields I do not want users to edit, so I set the lockText to true. I then have a handler called enableForm that enables every field and button

Re: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
Oh right you are! The thing that was throwing me is double-clicking does not work, but I can triple click and it selects the whole chalupa and I can copy it. I can also drag select. This will work. Bob S > On Feb 28, 2017, at 10:52 , J. Landman Gay via use-livecode > wrote: > > On 2/28/17

Re: The selectedText for controls without focus

2017-02-28 Thread J. Landman Gay via use-livecode
On 2/28/17 9:58 AM, Bob Sneidar via use-livecode wrote: I just think that LC should work like virtually every other forms based app I've ever used, where being editable is not a prerequisite for copying text. Did you try the field settings I suggested? It does work, it's already built-in: au

Re: The selectedText for controls without focus

2017-02-28 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > On Feb 24, 2017, at 22:09 , Richard Gaskin wrote: >> >> on rawkeydown k >> if k = 99 then >> if the commandKey is "down" then copy >> end if >> end rawkeydown > > For that matter I could just check the status of the "state" property > (view | new | edit) to allow/dis

Re: The selectedText for controls without focus

2017-02-28 Thread Bob Sneidar via use-livecode
For that matter I could just check the status of the "state" property (view | new | edit) to allow/disallow editing. Not saying there are not workarounds. I just think that LC should work like virtually every other forms based app I've ever used, where being editable is not a prerequisite for co

Re: The selectedText for controls without focus

2017-02-24 Thread Richard Gaskin via use-livecode
For a scriptless solution that's purely property-driven, what Jacque said covers normal click-and-drag selection at the small cost of multi-click selection. And if you need multi-click selection and don't mind a small bit of scripting, putting this in a normal editable field seems to make it

Re: The selectedText for controls without focus

2017-02-24 Thread J. Landman Gay via use-livecode
On 2/24/17 8:18 PM, Bob Sneidar via use-livecode wrote: Ok I've played with locked, traversalOn, and disabled and the only thing that alows me to enable/disable editing of the contents of a field is traversalOn. No combination of the other settings allow me to select text (in any manner that a us

Re: The selectedText for controls without focus

2017-02-24 Thread Phil Davis via use-livecode
Think of a web form. You can copy text all the live long day and yet not be allowed to edit it. That is what I am shooting for. I agree that if copying is not allowed, or to put it another way, if getting the selectedText or hilitedText is not possible, then the UI should not indicate that text

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
er to select and copy data from an uneditable field. Think of a web form. You can copy text all the live long day and yet not be allowed to edit it. That is what I am shooting for. I agree that if copying is not allowed, or to put it another way, if getting the selectedText or hilitedText i

Re: The selectedText for controls without focus

2017-02-24 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: Hi Richard. You are "locking" fields. I am setting the traversalOn to false. The reason I use this is because a locked field will still show the focus border, which I do not want. The focus border should be governed independently, using the showFocusBorder property. If you

Re: The selectedText for controls without focus

2017-02-24 Thread J. Landman Gay via use-livecode
On 2/24/17 3:33 PM, Bob Sneidar via use-livecode wrote: Hi Richard. You are "locking" fields. I am setting the traversalOn to false. The reason I use this is because a locked field will still show the focus border, which I do not want. I suppose I can lock the field and lock the field. I will pla

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
, 2017, at 12:35 , Richard Gaskin via use-livecode > wrote: > > If has one menu and a simple script in it: > > on menuPick pItemName > put the selectedText > end menuPick > > So here everything I do with selections in locked fields gives me the same > results

Re: The selectedText for controls without focus

2017-02-24 Thread Mike Bonner via use-livecode
t fields. > > > > Yes I did. It returns empty. I have a menu which intercepts the > > Copy menu selection. I hilite the text in a field whose traversalOn > > is false, then select Copy from the menu. In the menu handler I have > > "put the selectedText". I also

Re: The selectedText for controls without focus

2017-02-24 Thread Richard Gaskin via use-livecode
ection. I hilite the text in a field whose traversalOn > is false, then select Copy from the menu. In the menu handler I have > "put the selectedText". I also tried "hilitedText". Neither work. I > also tried the hilitedText of field "fldIPAddress". No

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
Yes I did. It returns empty. I have a menu which intercepts the Copy menu selection. I hilite the text in a field whose traversalOn is false, then select Copy from the menu. In the menu handler I have "put the selectedText". I also tried "hilitedText". Neither work. I also t

Re: The selectedText for controls without focus

2017-02-24 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > Enhancement Request 19323 submitted. > > As to your post, yes the selectedText 'of the field' will work. > But a menu command like "Copy" would not know which field was > selected. I suppose I could loop through all the fields and get >

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
If by "as expected" you mean the selectedText of the field can be obtained, then this is likely because you set it with the button. Selecting it with a cursor does not behave the same way. How odd. I may have to dig into the IDE and find where this is happening. Bob S > On Feb

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
Enhancement Request 19323 submitted. As to your post, yes the selectedText 'of the field' will work. But a menu command like "Copy" would not know which field was selected. I suppose I could loop through all the fields and get the one which was not empty. I'll play

Re: The selectedText for controls without focus

2017-02-24 Thread Mike Bonner via use-livecode
of just setting the locktext to true, one can drag > and select, but multi clicks don't select. getting the selectedtext of > field "whatever" does indeed work. (and you could turn off the focusborder > too) > > My guess is that despite the hilite that appears when travers

Re: The selectedText for controls without focus

2017-02-24 Thread Mike Bonner via use-livecode
select, but multi clicks don't select. getting the selectedtext of field "whatever" does indeed work. (and you could turn off the focusborder too) My guess is that despite the hilite that appears when traversal is off, the text isn't actually selected. To test this, I

Re: The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
uot;fieldname" is an optional argument youcan use. >> >> get the selectedtext of field "myfield" >> >> On Fri, Feb 24, 2017 at 9:50 AM, Bob Sneidar via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>>

Re: The selectedText for controls without focus

2017-02-24 Thread Mike Bonner via use-livecode
Nevermind, it doesn't work, and I think it should. Enhancement request? Bug? On Fri, Feb 24, 2017 at 10:16 AM, Mike Bonner wrote: > of field "fieldname" is an optional argument youcan use. > > get the selectedtext of field "myfield" > > On Fri, Feb

Re: The selectedText for controls without focus

2017-02-24 Thread Mike Bonner via use-livecode
of field "fieldname" is an optional argument youcan use. get the selectedtext of field "myfield" On Fri, Feb 24, 2017 at 9:50 AM, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi all. > > The Short Version: > > Is there a

The selectedText for controls without focus

2017-02-24 Thread Bob Sneidar via use-livecode
Hi all. The Short Version: Is there a way to get the hilited text for a control without focus? The Long Version: I use a method for forms (by which I mean LC cards with fields and buttons on them) where I set the traversalOn to false on all the fields when I am simply viewing the data, so t

Re: selectedText

2016-11-13 Thread Richmond
"Bengalis always cause problems." Richmond. On 13.11.2016 12:21, Richmond wrote: Does anyone have any idea why when in Livecode 6.x if one has this: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(4000) end mouseUp it inserts the charact

selectedText

2016-11-13 Thread Richmond
Does anyone have any idea why when in Livecode 6.x if one has this: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(4000) end mouseUp it inserts the character between the chars where the insertion point is inwith a field, but in Livecode

Re: selectedText

2016-11-06 Thread Paul Hibbert
> On Nov 6, 2016, at 9:41 AM, Richmond <mailto:richmondmathew...@gmail.com>> wrote: > > I wonder why this: > > set text of the selectedText to numToCodePoint(2309) > > [when I have a textField with a selection point within it] > > doesn't work (LC 8.

selectedText

2016-11-06 Thread Richmond
I wonder why this: set text of the selectedText to numToCodePoint(2309) [when I have a textField with a selection point within it] doesn't work (LC 8.1). Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this u

Re: select after the selectedText

2011-07-06 Thread Peter Brigham MD
useUnicode to true >>> set the unicodeText of the selectedText to numToChar(2340) >>>select after char -1 of field X >>> end mouseUp >> Untested, but what about >> >> on mouseUp >> local tChunkChar, tChunkField >> >> set the useUnicod

Re: select after the selectedText

2011-07-06 Thread Richmond Mathewson
On 07/06/2011 10:38 AM, Mark Wieder wrote: Richmond- Wednesday, July 6, 2011, 12:19:41 AM, you wrote: I have just tried this: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(2340) select after char -1 of field X end mouseUp Untested

Re: select after the selectedText

2011-07-06 Thread Mark Wieder
Richmond- Wednesday, July 6, 2011, 12:19:41 AM, you wrote: > I have just tried this: > on mouseUp > set the useUnicode to true > set the unicodeText of the selectedText to numToChar(2340) >select after char -1 of field X > end mouseUp Untested, but what about

Re: select after the selectedText

2011-07-06 Thread Richmond Mathewson
On 07/06/2011 10:10 AM, Slava Paperno wrote: The selectedText doesn't work with Unicode. I have a very similar thing working fine: I use "select after char -1 of field X". Slava set the unicodeText of the selectedText to numToChar(2340) works 100% and THAT is not my probl

RE: select after the selectedText

2011-07-06 Thread Slava Paperno
The selectedText doesn't work with Unicode. I have a very similar thing working fine: I use "select after char -1 of field X". Slava > -Original Message- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] On Beha

select after the selectedText

2011-07-05 Thread Richmond Mathewson
a.k.a. "Richmond's longest-lasting headache" imagine this sort of script: on mouseUp set the useUnicode to true set the unicodeText of the selectedText to numToChar(2340) select after the selectedText end mouseUp all looks straightforward (nicht?), but

RE: the selectedText of a Unicode field

2011-06-17 Thread Slava Paperno
Yes! "the unicodetext of the selection" is the answer. Forget the selectedText. "the unicodetext of the selectedChunk" works as well. Thank you, Mark! S. > -Original Message- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@l

Re: the selectedText of a Unicode field

2011-06-17 Thread Mark Schonewille
Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 17 jun 2011, at 09:31, Slava Paperno wrote: > Briefly, here is the problem: > > put the selectedTex

the selectedText of a Unicode field

2011-06-17 Thread Slava Paperno
Briefly, here is the problem: put the selectedText of field "BilingualText" of this card into tCurrSelection --the field may hold, for example, the two words Боб Bob, which is the string assigned to the unicodeText prop. of the field set the unicodeText of field "YourSelection&q

Re: Repost of "selectedText"

2011-04-30 Thread Richmond Mathewson
On 05/01/2011 06:35 AM, J. Landman Gay wrote: On 4/30/11 9:57 PM, dunb...@aol.com wrote: Repost of my riposte. Richmond. Would changing to "select after the text" make this better? That's what I'd do too. "select after the text of fld 1", or just "select after fld 1". Thank you. Yes,

Re: Repost of "selectedText"

2011-04-30 Thread Richmond Mathewson
On 05/01/2011 05:57 AM, dunb...@aol.com wrote: Repost of my riposte. Richmond. Would changing to "select after the text" make this better? Craig The script editor tells me that's wrong, as it would had you tried it . . . :) ___ use-livecode

Re: Repost of "selectedText"

2011-04-30 Thread J. Landman Gay
On 4/30/11 9:57 PM, dunb...@aol.com wrote: Repost of my riposte. Richmond. Would changing to "select after the text" make this better? That's what I'd do too. "select after the text of fld 1", or just "select after fld 1". -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: Repost of "selectedText"

2011-04-30 Thread dunbarx
Repost of my riposte. Richmond. Would changing to "select after the text" make this better? Craig -Original Message- From: Richmond Mathewson To: How to use LiveCode Sent: Sat, Apr 30, 2011 4:26 pm Subject: Repost of "selectedText" Sorry chaps; just a

Repost of "selectedText"

2011-04-30 Thread Richmond Mathewson
filled up with unicode (double-byte) chars, and to make sure the next chars gets placed in the correct place my insertion routine ends with select after the selectedText HOWEVER, when my line of text gets near to the edge of my textField I tend to hit the RETURN or ENTER button on my keyboard

Re: select after the selectedText

2011-04-29 Thread Nonsanity
t; From: Richmond > To: How to use LiveCode > Sent: Fri, Apr 29, 2011 4:51 am > Subject: select after the selectedText > > > So, here I am with a large textField, and as I merrily type into it new > characters keep getting > added to the end of the string (as one would exp

Re: select after the selectedText

2011-04-29 Thread dunbarx
Richmond. Would changing to "select after the text" make this better? Craig -Original Message- From: Richmond To: How to use LiveCode Sent: Fri, Apr 29, 2011 4:51 am Subject: select after the selectedText So, here I am with a large textField, and as I merrily type i

select after the selectedText

2011-04-29 Thread Richmond
insertion routine ends with select after the selectedText HOWEVER, when my line of text gets near to the edge of my textField I tend to hit the RETURN or ENTER button on my keyboard and start a new line . . . after which things go "funny", and the select after the selectedText kee