Modify

Opened 16 years ago

Closed 16 years ago

#802 closed Bug (Fixed)

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

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

Description

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

AutoIt 3.3.0.0 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)

GUISetState()

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

Do
    Sleep(20)
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 16 years ago by Valik

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

Fixed in version: 3.3.1.0

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 closed The owner will remain Valik.
Author


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

 
Note: See TracTickets for help on using tickets.