Problems with the focusedObject

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Sep 19 13:04:31 EDT 2008


Bonsoir Graham,

This just means that invoking your menu item deselects the selected  
field.
Does you menu button has its traversalOn set to false?

BTW, You speak about 'la France profonde': which one exactly?
;-)

Le 19 sept. 08 à 18:55, Graham Samuel a écrit :

> Bonjour Eric
>
> Thanks for the quick reply. Sadly the selectedField returns empty  
> in the circumstances. I do find this very mysterious. For example,  
> if I put some text in a field and invoke my 'cut' menu, which  
> executes this script fragment from the menuPick handler dealing  
> with "Cut":
>
>             cut
>             if clipboardData["text"] is not empty then
>                 put the selectedfield
>                 ....
>
> The clipboard data can be shown to be as expected (i.e. what was in  
> the field), but the selectedField is just empty.
>
> There must be some way for the handler in the menu to detect what  
> the cut (or paste or clear) operation was operating on, but I can't  
> find it.
>
> Best wishes from la France profonde
>
> Graham

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list