Ok here is my code:
Client.cs
exec("./Testgui.gui");
moveMap.bind(keyboard, "m", pushTestgui);
function SetMessage(%Client)
{
messageAll('', Textbox1.text );
}
Testgui.gui
//--- OBJECT WRITE BEGIN ---
new GuiControl(Testgui) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "149 66";
extent = "337 185";
minExtent = "8 2";
visible = "1";
command = "canvas.popdialog(Testgui);";
accelerator = "escape";
text = "Test GUI";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "canvas.popdialog(Testgui);";
new GuiSwatchCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 49";
extent = "223 53";
minExtent = "8 2";
visible = "1";
color = "175 175 175 255";
new GuiMLTextCtrl() {
profile = "BlockChatChannelSize7Profile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 9";
extent = "223 29";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "CLICK DA BUTTON";
maxBitmapHeight = "-1";
selectable = "1";
};
};
new GuiTextEditCtrl(Textbox1) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "34 119";
extent = "264 18";
minExtent = "8 2";
visible = "1";
text = "Empty";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiButtonCtrl(Button1) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "98 145";
extent = "140 30";
minExtent = "8 2";
visible = "1";
command = "SetMessage();";
text = "Button";
groupNum = "-1";
buttonType = "PushButton";
};
};
};
//--- OBJECT WRITE END ---