hazed Posted November 13, 2007 Share Posted November 13, 2007 I have a form that fills a page. I need the form to fit on the screen in it's entirety. I can use under Guicreate @desktopwidth and @desktopheight to make the actual gui window fit, but how do I scale the rest of the form to fit within the Gui? Link to comment Share on other sites More sharing options...
Lemmens Peter Posted November 13, 2007 Share Posted November 13, 2007 I have a form that fills a page. I need the form to fit on the screen in it's entirety. I can use under Guicreate @desktopwidth and @desktopheight to make the actual gui window fit, but how do I scale the rest of the form to fit within the Gui?Hi,Take a look at "GUICtrlSetResizing".It might be helpfull.Peter Link to comment Share on other sites More sharing options...
Achilles Posted November 14, 2007 Share Posted November 14, 2007 If GuiCtrlSetResizing doesn't work you could go for some tedious ControlMoves. With that you could set the position of each control based on how big or small the desktop is. If you're GUI isn't going to be resizing then you could just create it so that it fills the whole screen. Some lines would look similar to these: GuiCtrlCreateButton('Testing', 10, 10, @DesktokpWidth / 10, @DesktopHeight/ 5) GuiCtrlCreateButton('Testing some more', @DesktopWidth - 300, @DesktkopHeight - 300, 290, 290) My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
hazed Posted November 15, 2007 Author Share Posted November 15, 2007 If GuiCtrlSetResizing doesn't work you could go for some tedious ControlMoves. With that you could set the position of each control based on how big or small the desktop is. If you're GUI isn't going to be resizing then you could just create it so that it fills the whole screen. Some lines would look similar to these: GuiCtrlCreateButton('Testing', 10, 10, @DesktokpWidth / 10, @DesktopHeight/ 5) GuiCtrlCreateButton('Testing some more', @DesktopWidth - 300, @DesktkopHeight - 300, 290, 290) Real tedious ControlMoves....I think I'll play with the GUIScrollBars.au3 and the latest beta a little to see if that is a solution... 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