Module: AMS::Menu

Defined in:
Documentation/ams/menu.rb

Overview

Note:

Windows only!

The Menu namespace contains functions associated with Windows menu.

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.endBoolean

Deactivate active context menu.

See Also:

Since:

  • 2.0.0


17
18
# File 'Documentation/ams/menu.rb', line 17

def end
end

.get_commands(handle, cur_path = "") ⇒ Hash<String, Fixnum>

Get menu commands.

Since:

  • 2.0.0


86
87
# File 'Documentation/ams/menu.rb', line 86

def get_commands(handle, cur_path = "")
end

.get_item_count(handle) ⇒ Fixnum

Get menu item count.

See Also:

Since:

  • 2.0.0


24
25
# File 'Documentation/ams/menu.rb', line 24

def get_item_count(handle)
end

.get_item_id(handle, index) ⇒ Fixnum?

Note:

A return value of zero implies the menu item is a separator.

Get menu item id by item position.

See Also:

Since:

  • 2.0.0


33
34
# File 'Documentation/ams/menu.rb', line 33

def get_item_id(handle, index)
end

.get_item_string_by_id(handle, id) ⇒ String?

Get menu item string by item identifier.

See Also:

Since:

  • 3.0.0


59
60
# File 'Documentation/ams/menu.rb', line 59

def get_item_string_by_id(handle, id)
end

.get_item_string_by_pos(handle, index) ⇒ String?

Get menu item string by item position.

See Also:

Since:

  • 3.0.0


50
51
# File 'Documentation/ams/menu.rb', line 50

def get_item_string_by_pos(handle, index)
end

.get_sub_menu(handle, index) ⇒ Fixnum?

Get menu sub-menu handle by sub-menu position.

See Also:

Since:

  • 2.0.0


41
42
# File 'Documentation/ams/menu.rb', line 41

def get_sub_menu(handle, index)
end

.is_item_checked_by_id?(handle, id) ⇒ Boolean

Determine if menu item is checked.

Since:

  • 3.6.0


100
101
# File 'Documentation/ams/menu.rb', line 100

def is_item_checked_by_id?(handle, id)
end

.is_item_checked_by_pos?(handle, index) ⇒ Boolean

Determine if menu item is checked.

Since:

  • 3.6.0


93
94
# File 'Documentation/ams/menu.rb', line 93

def is_item_checked_by_pos?(handle, index)
end

.is_item_grayed_by_id?(handle, id) ⇒ Boolean

Determine if menu item is grayed.

Since:

  • 3.6.0


114
115
# File 'Documentation/ams/menu.rb', line 114

def is_item_grayed_by_id?(handle, id)
end

.is_item_grayed_by_pos?(handle, index) ⇒ Boolean

Determine if menu item is grayed.

Since:

  • 3.6.0


107
108
# File 'Documentation/ams/menu.rb', line 107

def is_item_grayed_by_pos?(handle, index)
end

.is_valid?(handle) ⇒ Boolean

Determine whether handle is a reference to a valid menu.

See Also:

Since:

  • 2.0.0


11
12
# File 'Documentation/ams/menu.rb', line 11

def is_valid?(handle)
end

.set_item_string_by_id(handle, id, string) ⇒ Boolean

Set menu item string by item identifier.

See Also:

Since:

  • 3.0.0


79
80
# File 'Documentation/ams/menu.rb', line 79

def set_item_string_by_id(handle, id, string)
end

.set_item_string_by_pos(handle, index, string) ⇒ Boolean

Set menu item string by item position.

See Also:

Since:

  • 3.0.0


69
70
# File 'Documentation/ams/menu.rb', line 69

def set_item_string_by_pos(handle, index, string)
end