Re: Highlited text in a cd fld
Only one card but regularly go to other stacks and back without losing the hilite . Pete lcSQL Software On May 25, 2014 2:58 AM, J. Landman Gay jac...@hyperactivesw.com wrote: I don't know, I don't think I ever tried it in a non-toplevel stack. Does your modeless stack have more than one card that you navigate from/to? If the style of the window is a factor, that'd be good to know. On 5/24/2014, 3:48 PM, Peter Haworth wrote: I don't see this in my scrolling list fields, maybe because they're on a modeless stack? Pete lcSQL Software On May 24, 2014 8:20 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 5/24/2014, 1:39 AM, Terence Heaford wrote: Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. I've never been able to get the hilite to stick, so yes, I think it's always been that way. -- 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 ___ 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 -- 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 ___ 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: Highlited text in a cd fld
Okay, that would explain it. The hilitedline is lost when the card containing the list changes. Switching stacks won't affect it because the card with the list doesn't change. On May 25, 2014 9:13:00 AM CDT, Peter Haworth p...@lcsql.com wrote: Only one card but regularly go to other stacks and back without losing the hilite . Pete lcSQL Software On May 25, 2014 2:58 AM, J. Landman Gay jac...@hyperactivesw.com wrote: I don't know, I don't think I ever tried it in a non-toplevel stack. Does your modeless stack have more than one card that you navigate from/to? If the style of the window is a factor, that'd be good to know. On 5/24/2014, 3:48 PM, Peter Haworth wrote: I don't see this in my scrolling list fields, maybe because they're on a modeless stack? Pete lcSQL Software On May 24, 2014 8:20 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 5/24/2014, 1:39 AM, Terence Heaford wrote: Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. I've never been able to get the hilite to stick, so yes, I think it's always been that way. -- 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 ___ 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 -- 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 ___ 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 -- 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
Re: Highlited text in a cd fld
On 5/25/2014, 1:25 PM, Terence Heaford wrote: Is there a reason why the hilitedLine is lost when switching between cards? I don't know. The loss doesn't always happen though. If the list field is part of a group with background behavior and it has sharedtext set to true, the hilite is retained as long as you navigate within the cards of the group. But if you go to a card that doesn't contain the group, and then back to the original card, the hilite is lost again. I don't know if this is an oversight or intentional, or just one of those things that's never been reported. It's been that way for so long that I just figured that's how it is, and I live with it. It might be worth a report, though I don't know if it should be a feature request or a bug report. -- 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
Re: Highlited text in a cd fld
sharedText is false. All the best Terry On 23 May 2014, at 23:38, Dave Kilroy d...@applicationinsight.com wrote: Does the field by any chance have sharedtext set to true? ___ 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: Highlited text in a cd fld
No, contents are not changed in any way. Thanks for the suggestion. Terry On 23 May 2014, at 23:21, Peter Haworth p...@lcsql.com wrote: Are you changing the contents of the list field in any way when you return to the card it is on, perhaps in a resumestack handler? Any change to ___ 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: Highlited text in a cd fld
Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. Thanks Terry On 24 May 2014, at 01:40, J. Landman Gay jac...@hyperactivesw.com wrote: It is both expected and normal. It may not, however, be right. I've wished it were otherwise sometimes. ___ 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: Highlited text in a cd fld
Yes but surely the default position should be that the status is maintained and if you want to change it, you script it. All the best Terry On 24 May 2014, at 04:16, dunb...@aol.com wrote: I think the explicit management of these sorts of properties are really the right way to make sure you get the functionality you want. Sure, sometimes the built-in behavior of the program is just what you need. But often it is only close, or just not suitable at all, and you have to make it work yourself. ___ 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: Highlited text in a cd fld
On 5/24/2014, 1:39 AM, Terence Heaford wrote: Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. I've never been able to get the hilite to stick, so yes, I think it's always been that way. -- 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
Re: Highlited text in a cd fld
I don't see this in my scrolling list fields, maybe because they're on a modeless stack? Pete lcSQL Software On May 24, 2014 8:20 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 5/24/2014, 1:39 AM, Terence Heaford wrote: Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. I've never been able to get the hilite to stick, so yes, I think it's always been that way. -- 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 ___ 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: Highlited text in a cd fld
I don't know, I don't think I ever tried it in a non-toplevel stack. Does your modeless stack have more than one card that you navigate from/to? If the style of the window is a factor, that'd be good to know. On 5/24/2014, 3:48 PM, Peter Haworth wrote: I don't see this in my scrolling list fields, maybe because they're on a modeless stack? Pete lcSQL Software On May 24, 2014 8:20 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 5/24/2014, 1:39 AM, Terence Heaford wrote: Has it always been this way? I am a newcomer to LiveCode. It is easy enough to save/set the hilitedLines when coming and going from another card but to have them highlighted automatically should in my opinion be the normal status and if you want them otherwise you script it. I've never been able to get the hilite to stick, so yes, I think it's always been that way. -- 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 ___ 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 -- 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
Re: Highlited text in a cd fld
Hi. If you set listBehavior to true, the hilited lilne persists. But it does not if false. I do not know if this is a feature, bug, or omission. You can always write an openCard (and concomitant closeCard) handler that sets a custom property for the table field, restoring the hilited line when you navigate back. Craig Newman -Original Message- From: Terence Heaford t.heaf...@btinternet.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Fri, May 23, 2014 3:30 am Subject: Highlited text in a cd fld I have noticed when using a cd field as a list/table that when switching from the card containing the field and back again that the highlight setting of any text is lost. Is this expected/normal behaviour? Am I expected to save all the current highlight status when leaving the card and reinstate it when I return? This seems odd behaviour. All the best Terry ___ 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: Highlited text in a cd fld
On 23 May 2014, at 13:57, dunb...@aol.com wrote: If you set listBehavior to true, the hilited lilne persists. But it does not if false. I do not know if this is a feature, bug, or omission. Whether I set listBehavior in the properties dialogue box or via. script the hilited line/lines do not persist when going to another card and back again. LC 6.6.1 OSX 10.9.3 The only solution would seem to be to save the state (hilitedLines) on closeCard and reset on openCard. Perhaps it works as you describe on other platforms but I have no way of checking. All the best Terry ___ 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: Highlited text in a cd fld
Are you changing the contents of the list field in any way when you return to the card it is on, perhaps in a resumestack handler? Any change to Alistair field loses the hilited lines property. Pete lcSQL Software On May 23, 2014 3:36 PM, Terence Heaford t.heaf...@btinternet.com wrote: On 23 May 2014, at 13:57, dunb...@aol.com wrote: If you set listBehavior to true, the hilited lilne persists. But it does not if false. I do not know if this is a feature, bug, or omission. Whether I set listBehavior in the properties dialogue box or via. script the hilited line/lines do not persist when going to another card and back again. LC 6.6.1 OSX 10.9.3 The only solution would seem to be to save the state (hilitedLines) on closeCard and reset on openCard. Perhaps it works as you describe on other platforms but I have no way of checking. All the best Terry ___ 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: Highlited text in a cd fld
Does the field by any chance have sharedtext set to true? - Some are born coders, some achieve coding, and some have coding thrust upon them. - William Shakespeare Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Highlited-text-in-a-cd-fld-tp4679906p4679932.html Sent from the Revolution - User mailing list archive at Nabble.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: Highlited text in a cd fld
I have a similar issue with any field. The focus is lost when switching to another app. It’s not just that the text is no longer selected, the cursor is no longer at the end of the text you were typing and the focus border is off for the field you were typing in. I have to click where I was typing again before proceeding. It’s a little annoying. You can play around with suspendStack and resumeStack if you like. on suspendStack save the current focused object and selection in a stack property, and on resumeStack restore it again. It’s ugly but I bet it would work. Pass the messages when done with them. Not sure what would happen if you blocked them. Bob S On May 23, 2014, at 24:29 , Terence Heaford t.heaf...@btinternet.com wrote: I have noticed when using a cd field as a list/table that when switching from the card containing the field and back again that the highlight setting of any text is lost. Is this expected/normal behaviour? Am I expected to save all the current highlight status when leaving the card and reinstate it when I return? This seems odd behaviour. All the best Terry ___ 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: Highlited text in a cd fld
Terence Heaford t.heaf...@btinternet.com wrote: I have noticed when using a cd field as a list/table that when switching from the card containing the field and back again that the highlight setting of any text is lost. Is this expected/normal behaviour? It is both expected and normal. It may not, however, be right. I've wished it were otherwise sometimes. -- 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
Re: Highlited text in a cd fld
You can play around with suspendStack and resumeStack if you like I think the explicit management of these sorts of properties are really the right way to make sure you get the functionality you want. Sure, sometimes the built-in behavior of the program is just what you need. But often it is only close, or just not suitable at all, and you have to make it work yourself. Mostly I think native behavior of LC is as close to perfect as one could ask. Beyond that, tools are available to tweak as needed. Craig Newman -Original Message- From: Bob Sneidar bobsnei...@iotecdigital.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Fri, May 23, 2014 7:24 pm Subject: Re: Highlited text in a cd fld I have a similar issue with any field. The focus is lost when switching to another app. It’s not just that the text is no longer selected, the cursor is no longer at the end of the text you were typing and the focus border is off for the field you were typing in. I have to click where I was typing again before proceeding. It’s a little annoying. You can play around with suspendStack and resumeStack if you like. on suspendStack save the current focused object and selection in a stack property, and on resumeStack restore it again. It’s ugly but I bet it would work. Pass the messages when done with them. Not sure what would happen if you blocked them. Bob S On May 23, 2014, at 24:29 , Terence Heaford t.heaf...@btinternet.com wrote: I have noticed when using a cd field as a list/table that when switching from the card containing the field and back again that the highlight setting of any text is lost. Is this expected/normal behaviour? Am I expected to save all the current highlight status when leaving the card and reinstate it when I return? This seems odd behaviour. All the best Terry ___ 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