PDA

View Full Version : GUI Issues


killerogue
08-09-2006, 04:24 AM
I am trying to get text to appear different text when I press each of the buttons individually. I want the text to appear in the body of the window and not the button titles. Help Please? O_O

//#CLIENTSIDE
function onCreated(){
addGUIControls();
}
function addGUIControls(){
new GuiWindowCtrl("SH_Information"){
profile = "GuiWindowProfile";
extent = "432 300";
position = "100 100";
canmaximize = 1;
canminizmize = 0;
canclose = 1;
new GuiButtonCtrl("News"){
profile = "GuiButtonProfile";
position = "6 24";
text = "News";
}
new GuiButtonCtrl("Hirings"){
profile = "GuiButtonProfile";
position = "146 24";
text = "Hirings";
}
new GuiButtonCtrl("FAQ"){
profile = "GuiButtonProfile";
position = "286 24";
text = "FAQ";
}
}
GraalControl.addControl(Blah);
}

Skyld
08-09-2006, 09:04 PM
Use a GuiTextCtrl.
new GuiTextCtrl(foo)
{
position = {x, y};
extent = {w, h};

text = "Text value here";
}