module Fzeet::TabMethods

Public Instance Methods

[](i) click to toggle source
# File lib/fzeet/windows/comctl/Tab.rb, line 115
def [](i) Item.new(self, i) end
count() click to toggle source
# File lib/fzeet/windows/comctl/Tab.rb, line 117
def count; sendmsg(:getitemcount) end
Also aliased as: size, length
current() click to toggle source
# File lib/fzeet/windows/comctl/Tab.rb, line 134
def current; self[sendmsg(:getcursel)] end
insert(text, i = count) click to toggle source
# File lib/fzeet/windows/comctl/Tab.rb, line 121
def insert(text, i = count)
        tci = Windows::TCITEM.new

        tci[:mask] = Fzeet.flags(:text, :tcif_)
        tci[:pszText] = ptext = FFI::MemoryPointer.from_string(text)

        sendmsg(:insertitem, i, tci.pointer)

        self
ensure
        ptext.free
end
length()
Alias for: count
size()
Alias for: count