Highlited text in a cd fld

dunbarx at aol.com dunbarx at aol.com
Fri May 23 23:16:04 EDT 2014

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 <bobsneidar at iotecdigital.com>
To: How to use LiveCode <use-livecode at 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.heaford at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list