ahaning Posted May 17, 2007 Share Posted May 17, 2007 I'd like to have certain controls in my GUI remain anchored when I resize a window. For example, I have a short blurb of instructions at the top of the window, a text box in the middle, and some buttons on the bottom. When I resize the window, I'd like the instructions and text box to remain where they are, and the buttons at the bottom to move with the bottom of the window. I've tried making the text and text box with top locations that are just hard-coded numbers and the buttons with $height - $number calculations, but resizing the window still makes the instructions and text box move when resizing. It seems as though the origin is changing. If it would be easier if I posted some code and screenshots, I will gladly do so. Link to comment Share on other sites More sharing options...
Davo Posted May 17, 2007 Share Posted May 17, 2007 Hi, try looking in the help file for GUICtrlSetResizing. Dave ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!! Link to comment Share on other sites More sharing options...
ahaning Posted May 18, 2007 Author Share Posted May 18, 2007 Hi, try looking in the help file for GUICtrlSetResizing.DaveHot damn! Thanks!I just wish it had been easier to find before. (Though perhaps I should have looked harder.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now