Opened 15 years ago

Closed 15 years ago

#802 closed Bug (Fixed)

ControlID fails with full X/Y/W/H definition

Reported by: PsaltyDS Owned by: Valik
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


The new X/Y/W/H ControlID definition fails when all four values are provided.

AutoIt with WinXP Pro SP2 on x86 32-bit

Global $hGUI = GUICreate("Test", 300, 200)

; Create 3 buttons
$idButton_1 = GUICtrlCreateButton("1", 100, 20, 100, 30)
$idButton_2 = GUICtrlCreateButton("2", 100, 70, 100, 30)
$idButton_3 = GUICtrlCreateButton("3", 100, 120, 100, 30)


; Set text by X/Y
ControlSetText($hGUI, "", "[X:100; Y:20]", "Button_ONE")
ControlSetText($hGUI, "", "[X:100; Y:70; W:100]", "Button_TWO")
ControlSetText($hGUI, "", "[X:100; Y:120; W:100; H:30]", "Button_THREE")

Until GuiGetMsg() = -3

The first two buttons change text the third does not.

Slightly off-topic from this bug, the help file needs an example of correct usage for these values under "Controls".

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Valik

  • Milestone set to
  • Owner set to Valik
  • 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 Valik.

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

Note: See TracTickets for help on using tickets.