Popup() > Menu display and selection xHarbour Developers Network  

oPopup:getShortct()

Determines if a key code identifies a shortcut key.

Syntax

:getShortct( <nKey> ) --> mMenuItemPos

Arguments

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

Description

Method :getShortct() is used to check if a numeric inkey code is a shortcut key that should trigger a menu action. Shortcut keys are defined when MenuItem() objects are created. They are stored in the instance variable :shortCut of MenuItem objects. If the key code <nKey> is a shortcut key, the method returns the ordinal position of the corresponding menu item as a numeric value. If it is not a shortcut, the return value is zero.


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