<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TIP SYSTEM "http://www.tcl.tk/cgi-bin/tct/tip/tipxml.dtd">
<!-- Converted at Wed May 22 09:08:38 GMT 2013 -->
<!-- TIP AutoGenerator - written by Donal K. Fellows -->

<TIP number='149'>
<header><title>Allow &quot;enabled&quot; as Synonym for &quot;normal&quot; in -state Option</title><author address="mailto:michael@cleverly.com">Michael A. Cleverly</author><status type='project' state='withdrawn' tclversion="8.5" vote='prior'>$Revision: 1.2 $</status><history></history><created day='13' month='aug' year='2003' /></header>
<abstract>This TIP allows Tk widgets which have a configurable <emph style="italic">-state</emph> option to accept <emph style="italic">enabled</emph> as a synonym for <emph style="italic">normal</emph>.</abstract>
<body><section title="Rationale">
<para>Tk widgets which have a configurable <emph style="italic">-state</emph> option have (at a minimum) <emph style="italic">normal</emph> and <emph style="italic">disabled</emph> states. In common usage, however, the antonym of <emph style="italic">disabled</emph> is <emph style="italic">enabled</emph>, not <emph style="italic">normal</emph>.</para>
<para>Even experienced Tcl/Tk programmers sometimes forget, though they usually won&apos;t come out and admit it explicitly. (Cf. <url ref="http://groups.google.com/groups?th=66e286d7efc3bbb6"/>)</para>
</section>
<section title="Proposed Changes">
<para>Modify all Tk widgets which have a configurable <emph style="italic">-state</emph> option to accept <emph style="italic">enabled</emph> as a synonym for <emph style="italic">normal</emph>. The value returned by a widget&apos;s <emph style="italic">cget</emph> method would continue to be <emph style="italic">normal</emph>. The appropriate man pages and test suite will be updated to document and test the use of <emph style="italic">enabled</emph> as a synonym.</para>
<verbatim><vline encoding='base64'>JSAkdyBjb25maWd1cmUgLXN0YXRlIGVuYWJsZWQ=</vline><vline encoding='base64'>JSBwdXRzIFskdyBjZ2V0IC1zdGF0ZV0=</vline><vline encoding='base64'>bm9ybWFs</vline></verbatim>
</section>
<section title="Implementation">
<para>A reference implementation will be provided shortly.</para>
</section>
<section title="Copyright">
<para>This document is placed in the public domain.</para>
</section>
</body></TIP>
