﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
230	Wrong GuiCtrlSetResizing after ControlMove in GUIs with Menus	anonymous	Jpm	"Probably related to the fixed #214 ticket.
After moving controls with ControlMove in a GUI with menus, the height of the controls using $GUI_DOCKBOTTOM is increased at next GUI resize event.


{{{
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
$GUI = GUICreate(""GuiCtrlSetResizing and ControlMove in GUIs with menus (beta v3.2.11.10)"", 600, 300, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU,$WS_SIZEBOX))

$cListView = GUICtrlCreateListView(""H1|H2"", 0,0,400,200)
GuiCtrlSetResizing($cListView, $GUI_DOCKLEFT+$GUI_DOCKTOP+$GUI_DOCKRIGHT+$GUI_DOCKBOTTOM)

$s_text='1. Resize GUI and notice the resizing of listview.' & @LF & @LF & _ 
  '2. Press the ControlMove button to reposition the ListView Control (with ControlMove) and update its resizing (with GuiCtrlSetResizing).' & _ 
  @LF & @LF & '3. Resize horizontally the GUI and notice that the listview height is increased (probably by the size of menu bar)' & _
  @LF & @LF & '4. Repeat steps 2 and 3.'
$c_lbl = GUICtrlCreateLabel($s_text, 420,10,170,210)
GuiCtrlSetResizing($c_lbl, $GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$c_btn_CtrlMove = GUICtrlCreateButton(""ControlMove"", 420,230,80,20)
GuiCtrlSetResizing($c_btn_CtrlMove, $GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$cMenu=GuiCtrlCreateMenu(""MENU"")
GUISetState()


While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
			
		Case $c_btn_CtrlMove
			ControlMove('','',$cListView, 0, 0)
			GuiCtrlSetResizing($cListView, $GUI_DOCKLEFT+$GUI_DOCKTOP+$GUI_DOCKRIGHT+$GUI_DOCKBOTTOM)
    EndSwitch
WEnd
}}}
"	Bug	closed	3.2.11.11	AutoIt	3.2.11.10	None	Fixed		
