Widgets: Button: If clicking a button disables it, it will be highlighted when 
re-enabled
-----------------------------------------------------------------------------------------

                 Key: XAP-341
                 URL: https://issues.apache.org/jira/browse/XAP-341
             Project: XAP
          Issue Type: Bug
          Components: Widgets
            Reporter: Trevor Oldak
            Priority: Trivial


<xal xmlns="http://openxal.org/ui";>
    <macro:macro id="disable" xmlns:macro="http://openxal.org/core/macro";>
        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify";>
            <xm:set-attribute select="id('b')">
                <xm:attribute name="disabled" value="true"/>
            </xm:set-attribute>
        </xm:modifications>
    </macro:macro>
    <macro:macro id="enable" xmlns:macro="http://openxal.org/core/macro";>
        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify";>
            <xm:set-attribute select="id('b')">
                <xm:attribute name="disabled" value="false"/>
            </xm:set-attribute>
        </xm:modifications>
    </macro:macro>
    <freePane width="300px" height="200px">
        <button width="100px" text="click me" id="b" x="0px" y="0px" 
onCommand="macro:disable.execute()"/>
        <button width="100px" text="and then me" x="0px" y="50px" 
onCommand="macro:enable.execute()"/>
    </freePane>
</xal>


Run the above code. Click the first button, then the second one. When the first 
button is re-enabled, it will be highlighted even though the mouse is not over 
it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to