Jump to content

GUi dynamically resize?


lyledg
 Share

Recommended Posts

Is it possible for the gui to be resized dynamically..??

Basically, I am writing a a program that will produce a *.au3 script, then compile it, but depending on the choices made intially to produce the *.au3 script, the gui might have to be resized accordingly

What switches or functions can I use in my GUI creation that will allow the GUI to be resized?

Hope this makes sense...

Cheers

Link to comment
Share on other sites

Is it possible for the gui to be resized dynamically..??

Basically, I am writing a a program that will produce a *.au3 script, then compile it, but depending on the choices made intially to produce the *.au3 script, the gui might have to be resized accordingly

What switches or functions can I use in my GUI creation that will allow the GUI to be resized?

Hope this makes sense...

Cheers

<{POST_SNAPBACK}>

I know there is a lot of info in the help but when you create a Gui you can read in the doc

By default the dialog box is non sizable and non maximizable. So WS_SIZEBOX or WS_MAXIMIZEBOX can be used in the style parameter.

If WS_SIZEBOX is use the first dialog box will be use as the minimum size and when expanding the control will be automatically position.

I hope that's solve your issue :idiot:
Link to comment
Share on other sites

If you want a window with no minumum size:

#comments-start
Information about window style
   $WS_POPUPWINDOW =    0x80880000
   $WS_VISIBLE =    0x10000000
   $WS_DISABLED =   0x08000000
   $WS_CLIPSIBLINGS =   0x04000000
   $WS_DLGFRAME =   0x00400000
   $WS_THICKFRAME = 0x00040000
   $WS_GROUP =  0x00020000
#comments-end

$window = GuiCreate("Example", 1, 1, -99999, -99999, 0x94CE0000)
GuiSetState(@SW_SHOW);window would lose resizability if I called WinMove before GuiSetState
WinMove($window,"", 290, @DesktopHeight/2-175, 400,350) ;initial size of window

While GuiGetMsg() <> -3
WEnd
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I guess that what he'd like is a GUI were the items "auto-resize" when you resize the window. I don't think that that is currently possible without a lot of AutoIt code. Please correct me if I'm wrong!  :">

Angel

<{POST_SNAPBACK}>

The GUICtrlSetResizing is designed for that.

Does this example is to much :idiot:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...