Re: closeField and the clear command

2010-12-12 Thread Peter Brigham MD

On Dec 12, 2010, at 11:35 AM, Bill Vlahos wrote:

The docs say that if you put something from a script into a field  
no closeField message is sent.


This appears to be the same as if you delete (menuItem Clear) as  
well. Is this the correct behavior because the docs don't mention it?


This appears to be true. You will probably have to intercept the  
backspaceKey and deleteKey messages and add a send closefield to the  
target message after the deletion.


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig




___
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: closeField and the clear command

2010-12-12 Thread Peter Haworth
..and maybe setting the menuHistory property of a button which  
generates a menuPick message.  I know that's not something a user does  
directly but it does get set when the user selects an item from an  
option menu.  I actually like that.  I can set the label of an option  
menu button if I don;t want any messages to pop and the menuHistory if  
I do - would be great if other controls had similar functionality


Pete Haworth

On Dec 12, 2010, at 12:20 PM, J. Landman Gay wrote:


On 12/12/10 10:35 AM, Bill Vlahos wrote:

The docs say that if you put something from a script into a field
no closeField message is sent.

This appears to be the same as if you delete (menuItem Clear) as
well. Is this the correct behavior because the docs don't mention
it?


Yes. Scripts don't send any messages that are normally generated  
only by user actions. The only exception I can think of off-hand is  
the click at command, which simulates a few mouse events.


--
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