Difference between revisions of "ISUplink:ismenuitem (Object Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  
 
== Members ==
 
== Members ==
* string '''Type''': The type of menu item, will be one of '''command''', '''separator''', or '''menu'''
+
* [[DataType:string|string]] '''Type''': The type of menu item, will be one of '''command''', '''separator''', or '''menu'''
* string '''Name''': The name of the menu item
+
* [[DataType:string|string]] '''Name''': The name of the menu item
* int '''ID''': The ID of the menu item (can be used with the ISMenu Top-Level Object to refer directly to the menu item)
+
* [[DataType:int|int]] '''ID''': The ID of the menu item (can be used with the ISMenu Top-Level Object to refer directly to the menu item)
* ismenu '''Parent''': The parent of the menu item (the menu it is under), if any
+
* [[ISUplink:ismenu (Object Type)|ismenu]] '''Parent''': The parent of the menu item (the menu it is under), if any
* ... '''Next''': The next menu item in the current menu
+
* ... '''Next''': The next menu item in the current menu. The return type will be one of [[ISUplink:ismenu (Object Type)|ismenu]], [[ISUplink:ismenucommand (Object Type)|ismenucommand]], or [[ISUplink:ismenuseparator (Object Type)|ismenuseparator]]
* ... '''Previous''': The previous menu item in the current menu
+
* ... '''Previous''': The previous menu item in the current menu. The return type will be one of [[ISUplink:ismenu (Object Type)|ismenu]], [[ISUplink:ismenucommand (Object Type)|ismenucommand]], or [[ISUplink:ismenuseparator (Object Type)|ismenuseparator]]
  
 
== Methods ==
 
== Methods ==
Line 19: Line 19:
 
== See Also ==
 
== See Also ==
 
* [[IS:Uplink|Inner Space Uplink]]
 
* [[IS:Uplink|Inner Space Uplink]]
 
+
* [[ISUplink:ismenu (Object Type)|ismenu]]: A custom sub-menu on the IS menu
 +
* [[ISUplink:ismenucommand (Object Type)|ismenucommand]]: A custom command item on the IS menu
 +
* [[ISUplink:ismenuseparator (Object Type)|ismenuseparator]]: A custom separator on the IS menu
 
* [[LavishScript:Data Types|LavishScript Object Types]]
 
* [[LavishScript:Data Types|LavishScript Object Types]]

Latest revision as of 04:17, 26 November 2008

Description

Object Type Vitals
ismenuitem
Defined By Inner Space Uplink
Inherits none
Reduces To Same as ID
Variable Object Type none
Uses Sub-Types no
C/C++ Type CustomMenuItem *

A custom menu item on the Inner Space menu. It might be a command, a separator, or a sub-menu. This type is always derived (inherited by another type).

Members

  • string Type: The type of menu item, will be one of command, separator, or menu
  • string Name: The name of the menu item
  • int ID: The ID of the menu item (can be used with the ISMenu Top-Level Object to refer directly to the menu item)
  • ismenu Parent: The parent of the menu item (the menu it is under), if any
  • ... Next: The next menu item in the current menu. The return type will be one of ismenu, ismenucommand, or ismenuseparator
  • ... Previous: The previous menu item in the current menu. The return type will be one of ismenu, ismenucommand, or ismenuseparator

Methods

  • Remove: Removes the menu item (and any of its children)
  • Rename[new name]: Renames the menu item

Examples

See Also