Module: AMS::Menu
- Defined in:
- docs/ams/menu.rb
Overview
Windows only!
The Menu namespace contains functions associated with Windows menu.
Class Method Summary collapse
-
.end ⇒ Boolean
Deactivate active context menu.
-
.get_commands(handle, cur_path = "") ⇒ Hash<String, Integer>
Get menu commands.
-
.get_item_count(handle) ⇒ Integer
Get menu item count.
-
.get_item_id(handle, index) ⇒ Integer?
Get menu item id by item position.
-
.get_item_string_by_id(handle, id) ⇒ String?
Get menu item string by item identifier.
-
.get_item_string_by_pos(handle, index) ⇒ String?
Get menu item string by item position.
-
.get_sub_menu(handle, index) ⇒ Integer?
Get menu sub-menu handle by sub-menu position.
-
.is_item_checked_by_id?(handle, id) ⇒ Boolean
Determine if menu item is checked.
-
.is_item_checked_by_pos?(handle, index) ⇒ Boolean
Determine if menu item is checked.
-
.is_item_grayed_by_id?(handle, id) ⇒ Boolean
Determine if menu item is grayed.
-
.is_item_grayed_by_pos?(handle, index) ⇒ Boolean
Determine if menu item is grayed.
-
.is_valid?(handle) ⇒ Boolean
Determine whether handle is a reference to a valid menu.
-
.set_item_string_by_id(handle, id, string) ⇒ Boolean
Set menu item string by item identifier.
-
.set_item_string_by_pos(handle, index, string) ⇒ Boolean
Set menu item string by item position.
Class Method Details
.end ⇒ Boolean
Deactivate active context menu.
.get_commands(handle, cur_path = "") ⇒ Hash<String, Integer>
Get menu commands.
.get_item_count(handle) ⇒ Integer
Get menu item count.
.get_item_id(handle, index) ⇒ Integer?
A return value of zero implies the menu item is a separator.
Get menu item id by item position.
.get_item_string_by_id(handle, id) ⇒ String?
Get menu item string by item identifier.
.get_item_string_by_pos(handle, index) ⇒ String?
Get menu item string by item position.
.get_sub_menu(handle, index) ⇒ Integer?
Get menu sub-menu handle by sub-menu position.
.is_item_checked_by_id?(handle, id) ⇒ Boolean
Determine if menu item is checked.
.is_item_checked_by_pos?(handle, index) ⇒ Boolean
Determine if menu item is checked.
.is_item_grayed_by_id?(handle, id) ⇒ Boolean
Determine if menu item is grayed.
.is_item_grayed_by_pos?(handle, index) ⇒ Boolean
Determine if menu item is grayed.
.is_valid?(handle) ⇒ Boolean
Determine whether handle is a reference to a valid menu.
.set_item_string_by_id(handle, id, string) ⇒ Boolean
Set menu item string by item identifier.
.set_item_string_by_pos(handle, index, string) ⇒ Boolean
Set menu item string by item position.