quote:
Originally posted by fergofrog
Thanks heaps that unicode thing worked! How do i get my Close button to work i have in Window.xml:
code:
            <Control xsi:type="ButtonControl" Id="BtnClose">
                <Position Left="112" Top="25" Width="50"/>
                <Caption>Close</Caption>
            </Control>
And in my script i have:
code:
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
        if(ControlId == "BtnClose")
                Wnd.Close(1);
}
Btw, if you want to have a Close button, you don't need any code at all. Just name the button "BtnCancel".