Opened 16 years ago

Closed 16 years ago

#230 closed Bug (Fixed)

Wrong GuiCtrlSetResizing after ControlMove in GUIs with Menus

Reported by: anonymous Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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)

$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)

$c_btn_CtrlMove = GUICtrlCreateButton("ControlMove", 420,230,80,20)


While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
		Case $c_btn_CtrlMove
			ControlMove('','',$cListView, 0, 0)

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.