Class: TT::GUI::ToolWindow

Inherits:
Window show all
Defined in:
TT_Lib2/toolwindow.rb

Overview

Examples:

w = TT::GUI::ToolWindow.new
w.show_window

Since:

  • 2.5.0

Direct Known Subclasses

Inputbox, Toolbar

Constant Summary

Constants inherited from Window

Window::EVENT_CALLBACK, Window::EVENT_OPEN_URL, Window::EVENT_WINDOW_READY, Window::THEME_DEFAULT, Window::THEME_GRAPHITE

Instance Attribute Summary

Attributes inherited from Window

#parent, #theme, #window

Attributes included from ContainerElement

#controls

Instance Method Summary collapse

Methods inherited from Window

#add_script, #add_style, #call_script, #get_checkbox_state, #get_checked_state, #get_client_size, #get_control_value, #get_html, #get_text, #get_value, #initialize, #inspect, #local_path, #on_ready, #set_client_size, #title

Methods included from ContainerElement

#add_control, #get_control_by_name, #get_control_by_ui_id, #initialize, #release!, #remove_control

Methods inherited from WebDialogPatch

#set_file, #set_html, #set_url

Constructor Details

This class inherits a constructor from TT::GUI::Window

Instance Method Details

#show_window(modal = false) ⇒ Nil

Returns:

  • (Nil)

Since:

  • 2.5.0



23
24
25
26
27
28
29
30
# File 'TT_Lib2/toolwindow.rb', line 23

def show_window(modal = false)
  was_visible = self.visible?
  super
  if TT::System.is_windows? && !was_visible
    TT::Win32.make_toolwindow_frame( @props[:title] )
  end
  nil
end