Class: AutoItX3::TabBook

Inherits:
Control show all
Defined in:
lib/AutoItX3/control.rb

Overview

A tab book or tab bar is a control that shows up most often at the top of a window and lets you choice between different contents within the same window.

Instance Method Summary collapse

Methods inherited from Control

#click, #disable, #enable, #enabled?, #focus, from_control, functions, functions=, #handle, #hide, #initialize, #move, #rect, #send_command_to_control, #send_keys, #show, #text, #text=, #visible?

Constructor Details

This class inherits a constructor from AutoItX3::Control

Instance Method Details

#currentObject

Returns the currently shown tab.



336
337
338
# File 'lib/AutoItX3/control.rb', line 336

def current
  send_command_to_control("CurrentTab").to_i
end

#leftObject

Shows the tab left to the current one and returns the number of the now shown tab.



349
350
351
352
# File 'lib/AutoItX3/control.rb', line 349

def left
  send_command_to_control("TabLeft")
  current
end

#rightObject

Shows the tab right to the current one and returns the number of the now shown tab.



342
343
344
345
# File 'lib/AutoItX3/control.rb', line 342

def right
  send_command_to_control("TabRight")
  current
end