Modify

Opened 3 months ago

Last modified 2 months ago

#3831 assigned Bug

GUICtrlSetPos and $GUI_DOCKHCENTER

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

Description

Using GUICtrlSetPos on elements with $GUI_DOCKHCENTER set does not work correctly.

#include <GUIConstants.au3>

test()

Func test()
    GUICreate('', 400, 400, -1, -1, $WS_OVERLAPPEDWINDOW, $WS_EX_WINDOWEDGE)
    Local $idButton_SetPos = GUICtrlCreateButton('GUICtrlSetPos', 20, 20, 360, 40)
    GUICtrlSetResizing(-1, BitOR($GUI_DOCKTOP, $GUI_DOCKHCENTER, $GUI_DOCKSIZE))
    GUISetState()

    While True
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case $idButton_SetPos
                GUICtrlSetPos($idButton_SetPos, 50, 50, 300)
        EndSwitch
    WEnd
EndFunc   ;==>test

Windows 10 Pro 21H1 x64
AutoIt Version: 3.3.14.5 / 3.3.15.4

Attachments (0)

Change History (2)

comment:2 Changed 2 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Thanks
Fix sent to Jon

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

Action
as assigned The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.