Hi
It's the fist time i'll try to make a gui resizable and i have a problem with it.
Check this:
#include <GUIConstantsEx.au3> #include <WindowsConstants.Au3> $hGUI = GUICreate("I'm a test", 521, 372, -1, -1, $WS_SIZEBOX + $WS_MAXIMIZEBOX + $WS_MINIMIZEBOX) GUICtrlCreateLabel("I'm a label", 35, 253, 55, 17) GUICtrlSetResizing(-1, $GUI_DOCKBOTTOM + $GUI_DOCKHCENTER + $GUI_DOCKHEIGHT) $Input = GUICtrlCreateInput("", 12, 269, 100, 21) GUICtrlSetResizing(-1, $GUI_DOCKBOTTOM + $GUI_DOCKHCENTER + $GUI_DOCKHEIGHT) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
When is "normal" is the label is centered with the input, when i'm maximize the label is not centered in the input. I know the input become bigger in width and i like it, but there is a way to get the label centered with the input when maximize the window? Thanks