I have a problem with my little gui application that doesn't resize properly.
Here is the current code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
InitGui()
Func InitGui()
Opt("GUICoordMode", 0)
GUICreate("TestApplication", 320, 268, -1, -1, $WS_SIZEBOX)
GUISetBkColor(0x00E0FFFF)
Local $idList = GUICtrlCreateListView("Name|Category|Action|Description", 8, 8, 304, 200)
GUICtrlSetResizing($idList, $GUI_DOCKLEFT + $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKBOTTOM)
Local $idProgress = GUICtrlCreateProgress(-1, 208, 220, 20)
GUICtrlSetResizing($idProgress, $GUI_DOCKAUTO + $GUI_DOCKLEFT + $GUI_DOCKBOTTOM + $GUI_DOCKHEIGHT)
Local $idBtn = GUICtrlCreateButton('OK', 227, -1, 78, 20)
GUICtrlSetResizing($idBtn, $GUI_DOCKAUTO + $GUI_DOCKRIGHT + $GUI_DOCKBOTTOM + $GUI_DOCKHEIGHT)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
EndFunc
Here is what I get when I start the application:
Here is what I get when I resize the application:
As you can see there are some weird problems:
First why my button is smaller than my progress bar?
They have the same heigh! How to solve this?
And how to keep 8px between the progress bar and my button after resize?
Thank you in advance for your precious help.