Modify

Opened 16 years ago

Closed 16 years ago

#213 closed Bug (Fixed)

GUISetAccelerators doesn't work with enter Key from 3.2.11.6

Reported by: Wooltown Owned by: Jpm
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 Changed 16 years ago by Valik

  • Severity set to Blocking

comment:2 Changed 16 years ago by Jpm

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

Fixed in version: 3.2.11.8

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 Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.