1. Hello,

    In the section "Creating a Close Button Using Templates" in Chapter 12, pg's 213-214 should there be code to register for the OnClick event? I checked the inherited frame but couldn't see anything. Related to this, how would the button number and click type be described in the xml file? (ie. MiddleButtonDown)

    Thanks. Love the book.

    When you inherit from the close button template, you get the following code:

     <Button name="UIPanelCloseButton" virtual="true">
                <AbsDimension x="32" y="32"/>
            <DisabledTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Disabled"/>
            <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
            <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
            <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>

    This includes registration for the OnClick event. Also, all buttons are automatically registered to receive the left-click events, so nothing further is necessary.