Modify cuteChat window

Last post 02-06-2007, 11:24 AM by gwladysb. 5 replies.
Sort Posts: Previous Next
  •  02-06-2007, 9:42 AM 26450

    Modify cuteChat window

    Hello,

    Somebody has the solution to modify the behavior of the button connect/disconnect on cutechat. In fact i want this button  close the window. that's all.

    thanks

  •  02-06-2007, 10:06 AM 26454 in reply to 26450

    Re: Modify cuteChat window

    gwladysb,
     
    Please open ChatUI.xml file and find the following code:
     
    <Class TypeName="ConnectionButton" BaseType="HtmlButton">
      <Scripts>
       <Constructor>
        AttachChatEvent("CONNECTION",this.OnChatEvent);
        this.UpdateButton();
       </Constructor>
       <Method Modifiers="public override" Name="Dispose">
        DetachChatEvent("CONNECTION",this.OnChatEvent);
        this.base_Dispose();
       </Method>
       <Method Modifiers="public" Name="OnChatEvent" Arguments="name,type,info1,info2">
        if(name=="CONNECTION")
        {
         this.UpdateButton();
        }
       </Method>
       <Method Modifiers="public virtual" Name="UpdateButton">
        if(IsConnecting()){this.SetText(TEXT("CANCEL"));}
        else if(IsConnected()){this.SetText(TEXT("UI_Menu_Disconnect"));}
        else{this.SetText(TEXT("UI_Menu_Connect"));}
       </Method>
       <OnClick>
        if(IsConnecting()){Disconnect();}
        else if(IsConnected())
        {
         function HandleConfirm(res)
         {
          if(res)Disconnect();
         }
         Desktop.Confirm(HandleConfirm,TEXT("UI_AreYouSureDisconnect"));
        }
        else{Connect();}
       </OnClick>
      </Scripts>
     </Class>
     
    This defines the connect/disconnect button behavior.

    You can change it to:
     
     
    <Class TypeName="ConnectionButton" BaseType="HtmlButton">
      <Scripts>
       <OnClick Arguments="htmlEvent">
         window.close();
        </OnClick>  
     </Scripts>
     </Class>
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-06-2007, 10:33 AM 26457 in reply to 26454

    Re: Modify cuteChat window

    thanks.

    I made it but now i've no text on my button and i'm not connected.

    i have this text on the windows instead of "connected", and my displayname is unknown
    [(UI_CONNECTION_Locked)]

    How can i resolve this problem

  •  02-06-2007, 10:43 AM 26458 in reply to 26457

    Re: Modify cuteChat window

    Just for details :

        in fact that work with internet explorer but the message i made before is for firefox

  •  02-06-2007, 10:58 AM 26459 in reply to 26458

    Re: Modify cuteChat window

    in fact after many test, i've seen, i can connect with administrator on ie and firefox but i can't connect
    with a no administrator. And i have on my room name "Roomname (locked)".

    How can i resolve this problem

  •  02-06-2007, 11:24 AM 26462 in reply to 26459

    Re: Modify cuteChat window

    Ok
    don't answer to these messages.

    I'va found the problem



View as RSS news feed in XML