module Fzeet::Windows::MenuMethods

Public Instance Methods

[](id) click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 192
def [](id) Item.new(self, id) end
append(flags, item = nil, id = 0) click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 194
def append(flags, item = nil, id = 0)
        Windows.DetonateLastError(0, :AppendMenu,
                @handle,
                Fzeet.flags(flags, :mf_, :mft_, :mfs_),
                case id
                when Integer; id
                when Symbol; Command[id]
                when Windows::MenuMethods; submenus << id; id.handle.to_i
                else raise ArgumentError
                end,
                item
        )

        self
end
images=(images) click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 210
def images=(images) images.each { |id, image| self[id].image = image } end
rdetach() click to toggle source
# File lib/fzeet/windows/user/Menu.rb, line 116
def rdetach; submenus.each(&:rdetach); detach end