Jump to content
Sign in to follow this  
hazed

Gui resize to screen

Recommended Posts

hazed

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?

Share this post


Link to post
Share on other sites
Lemmens Peter

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

Share this post


Link to post
Share on other sites
Achilles

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]

Share this post


Link to post
Share on other sites
hazed

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...

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.