On Mon, 21 Mar 2005 10:47:57 +0100, Jeroen De Vos
<[EMAIL PROTECTED]> wrote:

> I know this, but how can I tell the menubar that when a user selects an item
> in, for example, a datagrid that the 'edit' menuitem needs to be enabled and
> if nothing is selected in the datagrid, then the 'edit' need to be disabled.

You could listen for the MenuBar's 'menuShow' event and in the handler
enable/disable whichever items you want.

You can check if something is selected in a DataGrid by looking at the
'selectedIndex' property.  If it is undefined, nothing is selected.

Manish


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to