PreFab...Player...Documentation...Frontier...User's Guide...Chapter 5, Verbs...One Verb Per Page...

Player.getMenuAttribute


Syntax

Player.getMenuAttribute(theAttribute, menu)

Player.getMenuAttribute(theAttribute, menu, item)

Player.getMenuAttribute(theAttribute, menu, submenu)

Player.getMenuAttribute(theAttribute, menu, submenu, item)


Parameters

theAttribute is a named attribute.

menu is either a name or position number.

submenu is either a name or position number.

item is either a name or position number.


Action

Gets the specified attribute of the menu, submenu or item.


Returns

A string or number, depending on the attribute.


Examples

with Player « ", attributes" was required in 1.0x but is optional in 1.1
   getMenuAttribute(enabled, "Graphics")
with Player « Player 1.0x example ("attributes." prefix is now optional)
   getMenuAttribute(enabled, "Graphics")
with Player
   getMenuAttribute(enabled, "Graphics") « a menu
   getMenuAttribute(kind, "Graphics", "Grid On") « menu item OR submenu
   getMenuAttribute(count, "Graphics", "Alignment") « item OR submenu
   getMenuAttribute(checked, "Graphics", "Alignment", "Center") « a hierarchical menu item


Errors

Menu or item does not exist or is not enabled; menubar is not available.

The attribute does not exist.


Notes



See Also

Player.getMenuInfo
Player.menuExists
Player.popupExists
Player.getItemAttribute
Player.getWindowAttribute
Player.setCompleteMatch
Player.outlineMenus


Keywords

query[11] menus

| Top |


getItemInfo| Prev | Home | Next |getMenuInfo

Updated on 2/5/97 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.