Popup() > Menu display and selection xHarbour Developers Network  

oPopup:getAccel()

Determines if a key code identifies an accelerator key.

Syntax

:getAccel( <nKey> ) --> nMenuItemPos

Arguments

<nKey>
This is a numeric Inkey() code to check.

Description

Method :getAccel() is used to check if a numeric inkey code is an accelerator key that should trigger a menu action. Accelerator keys are key combinations of the Alt key an a letter of a menu item caption prefixed with an ampersand (&). If the key code <nKey> is an accelerator key, the method returns the ordinal position of the corresponding menu item as a numeric value. If it is not an accelerator, the return value is zero.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe