Buttonclick deselects text

Martin Baxter mb.userev at harbourhosting.co.uk
Mon Feb 12 18:40:48 EST 2007


Devin Asay wrote:
> 
> On Feb 10, 2007, at 5:38 PM, Kresten Bjerg wrote:
> 
>> Hi
>> I have  buttons, which, on mouseup,  shall use bits of user-selectedtext
>> from a textfield. But it seems that the clicking of some  buttons
>> deselects the text before it can be caught. I guess this is a trivial
>> problem,but : what is the trick to postpone the deselection ?
>> I shall be grateful for advice
>> Kresten Bjerg
> 
> The advice you've gotten is good, but it does appear that there is 
> inconsistent behavior between Mac OS X and Windows. See 
> http://quality.runrev.com/qacenter/show_bug.cgi?id=4015 .
> 
> Is this a Rev problem or a difference in the way the operating systems 
> work?
> 
> Devin
> 

The latter, I would say. On Macintosh the default is that buttons don't 
get focus, on Windows they do. I dimly recall hearing that OSX has a 
preference you can set to change this behaviour so buttons *do* get 
focus. But if so, I don't know where it is.

Martin Baxter



More information about the use-livecode mailing list