Author Topic: GUI Issue...  (Read 607 times)

So I made a new GUI and the script and stuff and I open it on my server and it opens but when I hit Exit button the text dissapears on gui but the window is still there....



Not sure if right section but please help!



I was wondering if maybe I didnt parent it to the Window or something oh and when I move the window the text is behind it like stuck to the screen..

« Last Edit: August 24, 2011, 10:54:01 PM by yourthatdude »


Code: [Select]
//--- OBJECT WRITE BEGIN ---
new GuiControl(sticky) {
   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 = "372 236";
      extent = "252 240";
      minExtent = "8 2";
      visible = "1";
      text = "To-DO List";
      maxLength = "255";
      resizeWidth = "0";
      resizeHeight = "0";
      canMove = "1";
      canClose = "1";
      canMinimize = "0";
      canMaximize = "0";
      minSize = "50 50";
      closeCommand = "escape";
   };
   new GuiTextEditCtrl() {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "410 286";
      extent = "200 18";
      minExtent = "8 2";
      visible = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl() {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "411 316";
      extent = "199 18";
      minExtent = "8 2";
      visible = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl() {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "412 346";
      extent = "198 18";
      minExtent = "8 2";
      visible = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl() {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "412 380";
      extent = "200 18";
      minExtent = "8 2";
      visible = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextEditCtrl() {
      profile = "GuiTextEditProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "413 413";
      extent = "200 18";
      minExtent = "8 2";
      visible = "1";
      maxLength = "255";
      historySize = "0";
      password = "0";
      tabComplete = "0";
      sinkAllKeyEvents = "0";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "399 286";
      extent = "24 18";
      minExtent = "8 2";
      visible = "1";
      text = "1.";
      maxLength = "255";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "399 317";
      extent = "14 18";
      minExtent = "8 2";
      visible = "1";
      text = "2.";
      maxLength = "255";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "399 345";
      extent = "21 18";
      minExtent = "8 2";
      visible = "1";
      text = "3.";
      maxLength = "255";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "399 379";
      extent = "9 18";
      minExtent = "8 2";
      visible = "1";
      text = "4.";
      maxLength = "255";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "400 415";
      extent = "9 18";
      minExtent = "8 2";
      visible = "1";
      text = "5.";
      maxLength = "255";
   };
   new GuiTextCtrl() {
      profile = "GuiTextProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "472 445";
      extent = "117 18";
      minExtent = "8 2";
      visible = "1";
      text = "SSBU Officials®";
      maxLength = "255";
   };
};
//--- OBJECT WRITE END ---
function pushsticky(%Gui)
{
   %Gui = canvas.pushDialog(sticky);
}


Is this what you wanted?

There is this thing called parenting.  You right click the gui control to make the next gui control you place a "child" of that control.  This means its location is determined by the location of that control

On the gui you have, if you try to move the window, all the things on the window will stay where they are.

There is this thing called parenting.  You right click the gui control to make the next gui control you place a "child" of that control.  This means its location is determined by the location of that control

On the gui you have, if you try to move the window, all the things on the window will stay where they are.
ie parent everything "below" the window to the window

Hmmmmmm ok well I am in the GUI Editor on bl and I am looking for it :derp:

Hmmmmmm ok well I am in the GUI Editor on bl and I am looking for it :derp:
You right click the gui control