Class: RAutomation::Adapter::MsUia::TabControl

Inherits:
Control
  • Object
show all
Defined in:
lib/rautomation/adapter/ms_uia/tab_control.rb

Defined Under Namespace

Classes: TabItem

Instance Method Summary collapse

Methods inherited from Control

#assert_enabled, #bounding_rectangle, #cached_hwnd, #click, #collapse, #control_class, #control_name, #disabled?, #enabled?, #exist?, #expand, #focus, #focused?, #get_current_control_type, #help_text, #hwnd, #initialize, #matches_type?, #new_pid, #search_information, #visible?

Constructor Details

This class inherits a constructor from RAutomation::Adapter::MsUia::Control

Instance Method Details

#items



30
31
32
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 30

def items
  values.each_with_index.map {|value, index| TabItem.new(self, value, index) }
end

#select(index)



22
23
24
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 22

def select(index)
  UiaDll::select_tab(search_information, index)
end

#set(value)



26
27
28
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 26

def set(value)
  UiaDll::select_tab(search_information, value)
end

#value



34
35
36
# File 'lib/rautomation/adapter/ms_uia/tab_control.rb', line 34

def value
  UiaDll::tab_selection(search_information)
end