| 8 | | > {{{ |
| 9 | | > the control will not move during resizing |
| 10 | | > }}} |
| 11 | | > |
| 12 | | > |
| 13 | | > Bug or change is in $GUI_DOCKAUTO |
| 14 | | > HelpFile: |
| 15 | | > {{{ |
| 16 | | > resize and reposition according to new window size |
| 17 | | > }}} |
| 18 | | > |
| 19 | | > |
| 20 | | > In Au3.3.15.0 it works fine. |
| 21 | | > Starting from Au3.3.15.1 it is '''not resizing''', only repositioning. |
| 22 | | > |
| 23 | | > |
| 24 | | > My testing script: |
| 25 | | > |
| 26 | | > {{{#!autoit |
| 27 | | > #AutoIt3Wrapper_AutoIt3Dir="z:\AutoItPortable\AutoIt_3_3_15_0" |
| 28 | | > ;~ #AutoIt3Wrapper_AutoIt3Dir="z:\AutoItPortable\AutoIt_3_3_15_1" |
| 29 | | > #AutoIt3Wrapper_UseX64=n |
| 30 | | > |
| 31 | | > #include <GUIConstants.au3> |
| 32 | | > #include <WindowsConstants.au3> |
| 33 | | > |
| 34 | | > Test() |
| 35 | | > |
| 36 | | > Func Test() |
| 37 | | > GUICreate(@AutoItVersion, 350, 300, -1, -1, BitOR($WS_CAPTION, $WS_SIZEBOX + $WS_SYSMENU)) ; will create a dialog box that when displayed is centered |
| 38 | | > ;~ GUICtrlCreateButton("text", 10, 10, 330, 280) |
| 39 | | > GUICtrlCreatePic("z:\AutoItPortable\App\Examples\GUI\logo4.gif", 10, 10, 330, 280) |
| 40 | | > ;~ GUICtrlCreatePic("C:\Program Files (x86)\AutoIt3\Examples\GUI\logo4.gif", 10, 10, 330, 280) |
| 41 | | > ;~ GUICtrlSetResizing(-1, $GUI_DOCKALL) |
| 42 | | > GUICtrlSetResizing(-1, $GUI_DOCKAUTO) |
| 43 | | > |
| 44 | | > GUISetState(@SW_SHOW) |
| 45 | | > |
| 46 | | > While 1 |
| 47 | | > Switch GUIGetMsg() |
| 48 | | > Case $GUI_EVENT_CLOSE, -3 |
| 49 | | > ExitLoop |
| 50 | | > EndSwitch |
| 51 | | > WEnd |
| 52 | | > |
| 53 | | > EndFunc |
| 54 | | > }}} |
| 55 | | > |
| 56 | | > Smallest repro: |
| 57 | | > {{{#!autoit |
| 58 | | > |
| 59 | | > #include <GUIConstants.au3> |
| 60 | | > Test() |
| 61 | | > |
| 62 | | > Func Test() |
| 63 | | > GUICreate(@AutoItVersion, 350, 300, -1, -1, BitOR($WS_CAPTION, $WS_SIZEBOX + $WS_SYSMENU)) |
| 64 | | > GUICtrlCreatePic("C:\Program Files (x86)\AutoIt3\Examples\GUI\logo4.gif", 10, 10, 330, 280) |
| 65 | | > GUICtrlSetResizing(-1, $GUI_DOCKAUTO) |
| 66 | | > GUISetState(@SW_SHOW) |
| 67 | | > |
| 68 | | > While 1 |
| 69 | | > Switch GUIGetMsg() |
| 70 | | > Case $GUI_EVENT_CLOSE, -3 |
| 71 | | > ExitLoop |
| 72 | | > EndSwitch |
| 73 | | > WEnd |
| 74 | | > EndFunc |
| 75 | | > }}} |
| | 8 | > ..... |