{"identifier":71193,"topic":"Properties","name":"enabled","text":"<code><pre> set [the] enabled of{<i>menu<\/i>|<i>menuItem <\/i>}\u00ac\n    to <i>trueOrFalse<\/i>\n<\/pre><\/code>\n<code>set<\/code> [<code>the<\/code>] <code>enabled of <i>button<\/i> \u00ac     to <i>trueOrFalse<\/i> <br><br>\n\n <\/code>The<code> enabled <\/code>property returns or sets whether a menu item, menu, or button is active or inactive (dimmed). Users cannot choose dimmed elements.    <br><br>\n\n If you set the<code> enabled <\/code>of a menu to false, <u>all<\/u> items on the menu become inactive. <br>\n<br>\nThe<code> enabled <\/code>property won't enable items in HyperCard\u2019s menus unless they're currently available to the user.  <br><br>\n\n For example, the following code won't enable the Button Info command unless a button is selected: <br><br>\n\n <code><pre>set the enabled of menuItem 1 of \u00ac menu \"Objects\" to true\n<\/pre><\/code> The default state is<code> true<\/code>, meaning that the element is enabled. <br>\n","related":{"34927":null,"69523":"checkMark","70039":"commandChar","34045":"create","34993":"disable","35579":"doMenu","61996":"enable","76221":"markChar","58014":"menus","76567":"menuMessage","45460":"put","45965":"reset"},"examples":"set the enabled of menu \"File\" to true\nset the enabled of menu 2 to false\nset the enabled of second menu to true\n\nset the enabled of menuItem \"New\" of menu \"File\" to false\nset the enabled of menuItem 2 of menu 2 to true\nset the enabled of second menuItem of second menu to false\n\nset the enabled of button 5 to false\nif the enabled of bg btn \"Scores\" is true then show field \"Players\"","demo":"on mouseUp\n   if there is a menu \"Reference\"\n   then set <b>enabled<\/b> of menuItem 4 of menu \"Reference\" to \u00ac\n        not (enabled of menuItem 4 of menu \"Reference\")\n end mouseUp\n ","debug":{"9":["\rset [the] enabled o"],"10":["The enabled property"]}}