set the enabled of menuItem "Close" of menu "File" to false set the enabled of card button 1 to true
The enabled property decides whether the given object is drawn inactive and ignores clicks on it (and keyboard shortcuts that would usually trigger actions in it), or whether it is drawn active and can be manipulated.
Note that a menu item will automatically disable itself if there is no handler for its message anywhere up the message path. If you do not specify a message (i.e. its message property is empty), the menu item will automatically disable itself if there is no doMenu handler up the message path. If either of these is present, the menu item will be enabled, unless you set its enabled property to false.