I have implemented a feature that allows the GUI to slide up to compensate for this and I would greatly prefer not so set up a scroll bar for this particular window.
The problem is that the GUI can be cut off with long variables. It will show half of a control at the bottom, with others below it missing from view completely.
This is when a height is not specified. If I specify a height, this doesn't happen but of course I would have considerable blank space in a lot instances.
The documentation says:
However, the window height doesn't fill to the controls as specified when it's particularly long (running-off screen), something else is limiting that height.If there is no previous size, the window will be auto-sized according to the size and positions of the controls it contains.
Is there any solution to force it to set the height according to the controls? AutoSize does not work unfortunately.
Thank you.
EDIT:
I've manged to fix it by showing the GUI, and then using the autosize AFTER showing it.
Code: Select all
Gui, Show
Gui, Show, AutoSize