code:<Controls> <Control xsi:type="StaticControl" Id="Title"> <Position Top="8" Width="350" Left="110" Height="40"/> <Font><Size>12</Size></Font> <Caption>Mio Profilo</Caption> </Control> <!-- Frase n1 --> <Control xsi:type="StaticControl" Id="Nome"> <Position Top="25" Width="100" Left="5" Height="10"/> <Caption>Nome: </Caption> <Font><Bold>true</Bold></Font> </Control> <Control xsi:type="EditControl" Id="NuovoNome"> <Position Top="25" Width="170" Left="70"/> <Caption></Caption> <Font><Bold>True</Bold></Font> </Control> <Control xsi:type="ButtonControl" Id="BtnConfermaNome"> <Position Top="25" Left="250" Width="40"/> <Caption>Conferma</Caption> </Control> <!-- Frase n2 --> <Control xsi:type="StaticControl" Id="Frase"> <Position Top="40" Width="100" Left="5" Height="10"/> <Caption>Cognome: </Caption> <Font><Bold>true</Bold></Font> </Control> <Control xsi:type="EditControl" Id="NuovaFrase"> <Position Top="40" Width="170" Left="70"/> <Caption></Caption> <Font><Bold>True</Bold></Font> </Control> <Control xsi:type="ButtonControl" Id="BtnConfermaFrase"> <Position Top="40" Left="250" Width="40"/> <Caption>Conferma</Caption> </Control> <Control xsi:type="ButtonControl" Id="BtnAbout"> <Position Top="220" Left="45" Width="60"/> <Caption>Informazioni</Caption> </Control> <Control xsi:type="ButtonControl" Id="BtnCancel"> <Position Top="220" Left="185" Width="60"/> <Caption>Chiudi finestra</Caption> </Control> </Controls>
code:function OnOptionsEvent_CtrlClicked(Wnd, ControlId) { if(ControlId == "BtnAbout") { var Wnd = MsgPlus.CreateWnd("gui.xml", "About"); } if(ControlId == "BtnConfermaNome") { Wnd.Close(1); } if(ControlId == "BtnCancel") { Wnd.Close(1); } }