At 14:53 Uhr +0000 20.10.1999, rice wrote:
>The following script is in a button and after the user has highlited 
>a word or phrase in field 1 they click the button to execute this:
>
>on mouseUp
>   get the selectedtext of cd field 1
>   put it
>end mouseUp
>
>Field 1 is not locked.
>It works on a Mac but not on Win 95. It's MC 2.2.5

The problem is that on the MacOS buttons never get the focus like on 
Windows, where you can press the tab key to get the dotted frame in 
the button that indicates pressing the enter key would activate the 
button. Buttons get the focus on mouseDown, deselecting the field, so 
the selectedText property returns empty in the mouseUp handler. Set 
the traversalOn of the button to false, so it does not recieve the 
focus on Windows either.

Regards
   R�diger
--------------------------------------------------------------------
| Ruediger zu Dohna   GINIT GmbH   0721-96681-63    [EMAIL PROTECTED] |
| PGP-Fingerprint: F1 BF 9D 95 57 26 48 42 FE F8 E8 02 41 1A EE 3E |
--------------------------------------------------------------------

Reply via email to