Jump to content

Gui resize to screen


Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...