Home > Code Library > SmartMenuXP > AccessKey

Last Update 01 Nov 2001

 


Search:



  

Options:

   

   

   

   



SmartMenuXP Reference

AccessKey Property

Returns the access key asociated with the menu item.

Syntax

object.AccessKey(menuID)

The AccessKey property syntax has these parts:

Part Description
object An object expression that evaluates to a SmartMenuList object.
menuID A numeric expression that evaluates to a menu item.


Remarks

Every menu item can have an access key. These are defined on the Caption property by preceding a letter with the symbol &. Access keys are a quick way of selecting menu items and have always the syntax ALT+Key.

    .MenuItems.Add "keyFile", , , "E&xit", , vbAltMask, vbKeyQ

The access key for the example above would be ALT+X

 

 
Copyright © 2001, Andrés Pons (andres@vbsmart.com). All rights reserved.