However, the following code places the edit box on top of the text, not beside it as indicated in the quote above...X: X-position. For example, specifying x0 y0 would position the control in the upper left corner of the window's client area, which is the area beneath the title bar and menu bar (if any). If X is omitted but not Y, the control will be positioned to the right of all previously added controls, which can be thought of as starting a new "column".
Y: Y-position. If Y is omitted but not X, the control will be positioned beneath all previously added controls, which can be thought of as starting a new "row".
Omitting either X, Y or both is useful to make a GUI layout automatically adjust to any future changes you might make to the size of controls or font. By contrast, specifying an absolute position for every control might require you to manually shift the position of all controls that lie beneath and/or to the right of a control that is being enlarged or reduced.
Code: Select all
#SingleInstance,Force gui, add, text,, text control: Gui, add, edit,yp, my edit Gui, Add, text, ,new text Gui, Add, text, yp ,new text Gui, Show, w200 h200 return