OpenField/ExitField Handlers in Datagrid?

Peter Haworth pete at mollysrevenge.com
Sun Feb 27 15:27:18 CST 2011


Found this in the datagrid manual:

"When editing stops (focus leaves field, user presses escape key, etc.) the message
DeleteFieldEditor is sent to the data grid. This in turn sends CloseFieldEditor pFieldEditor to pField if
the user changed the content or ExitFieldEditor pFieldEditor if no change was made"

Sounds like you would need a CloseFieldEditor and ExitFieldEditor handlers in your script.

Pete Haworth


On Feb 27, 2011, at 1:08 PM, RevList wrote:

> Peter Haworth <pete at mollysrevenge.com> on February 27, 2011 at 12:24 PM
> -0800 wrote:
>> I think you need to do this in the EditFieldText and CloseFieldEditor
>> commands in the datagrid library.  I haven;t used them but they are
>> writen up in detail in Trevor's Datagrid Manual.
> 
> I have been able to enable the menu items by adding to the EditValue
> command in the behavior script for this field
> 
> command EditValue
>   if there is a field 1 of me then
>      EditFieldText the long ID of field 1 of me, the dgIndex of me, the
> dgColumn of me
>   end if
>   Enable  menuItem 1 of button "EditMenu"
>   Enable  menuItem 2 of button "EditMenu"
>   Enable  menuItem 3 of button "EditMenu"
> end EditValue
> 
> I don't know where or how to set the disable commands when I exit this
> field
> 
> 
> ******************************************
> Stewart Lynch
> CreaTECH Solutions
> slynch at CreaTECHSol.com
> 604.484.8499
> Skype:StewartLynch
> 
> There are only 10 kinds of people.  Those who understand binary and those
> who don't.
> ******************************************
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 




More information about the use-livecode mailing list