Modify

Opened 18 years ago

Closed 18 years ago

#213 closed Bug (Fixed)

GUISetAccelerators doesn't work with enter Key from 3.2.11.6

Reported by: Wooltown Owned by: J-Paul Mesnage
Milestone: 3.2.11.8 Component: AutoIt
Version: 3.2.11.6 Severity: Blocking
Keywords: Cc:

Description

From Beta 3.2.11.6 - ENTER - doesn't work on GUISetAccelerators, worked fine on 3.2.11.5.

#include <GUIConstantsEx.au3>

GUICreate("Custom Msgbox", 280, 80)

GUICtrlCreateLabel("Please click a button!", 10, 10)
$YesID = GUICtrlCreateButton("Yes", 10, 50, 50, 20)
$NoID = GUICtrlCreateButton("No", 80, 50, 50, 20)
$ExitID = GUICtrlCreateButton("Exit", 150, 50, 50, 20)
$EnterID = GUICtrlCreateButton("Enter", 220, 50, 50, 20)

; Set accelerators for Ctrl+y and Ctrl+n
Dim $AccelKeys[3][2]=[["^y", $YesID], ["^n", $NoID],["{ENTER}", $EnterID]]
GUISetAccelerators($AccelKeys)

GUISetState()  ; display the GUI

Do
	$msg = GUIGetMsg()

	Select
		Case $msg = $YesID
			MsgBox(0, "You clicked on", "Yes")
		Case $msg = $NoID
			MsgBox(0, "You clicked on", "No")
		Case $msg = $ExitID
			MsgBox(0, "You clicked on", "Exit")
		Case $msg = $EnterID
			MsgBox(0, "You clicked on", "Enter")	
		Case $msg = $GUI_EVENT_CLOSE
			MsgBox(0, "You clicked on", "Close")
	EndSelect
Until $msg = $GUI_EVENT_CLOSE Or $msg = $ExitID

Attachments (0)

Change History (2)

comment:1 by Valik, 18 years ago

Severity: Blocking

comment:2 by J-Paul Mesnage, 18 years ago

Milestone: 3.2.11.8
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.8

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.