Module: AMS::Menu
- Defined in:
- Documentation/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, Fixnum>
Get menu commands.
-
.get_item_count(handle) ⇒ Fixnum
Get menu item count.
-
.get_item_id(handle, index) ⇒ Fixnum
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) ⇒ Fixnum?
Get menu sub-menu handle by sub-menu position.
-
.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, Fixnum>
Get menu commands.
.get_item_count(handle) ⇒ Fixnum
Get menu item count.
.get_item_id(handle, index) ⇒ Fixnum
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) ⇒ Fixnum?
Get menu sub-menu handle by sub-menu position.
.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.