Class: TT::GUI::Label
Overview
Instance Attribute Summary collapse
Attributes inherited from Control
#bottom, #font_bold, #font_italic, #font_name, #font_size, #height, #left, #name, #parent, #right, #tooltip, #top, #ui_id, #width, #window
Instance Method Summary collapse
- #custom_properties ⇒ TT::JSON
-
#initialize(caption, control = nil) ⇒ Label
constructor
A new instance of Label.
Methods inherited from Control
#add_event_handler, #call_event, #disabled=, #disabled?, #enabled=, #enabled?, events, has_event?, #inspect, #move, #position, #positioned?, #properties, #release!, #size
Methods included from ControlEvents
Constructor Details
#initialize(caption, control = nil) ⇒ Label
Returns a new instance of Label
828 829 830 831 832 833 834 835 836 837 |
# File 'TT_Lib2/gui.rb', line 828 def initialize( , control=nil ) super @caption = @control = control @url = nil add_event_handler( :open_url ) { UI.openURL( param ) } # (!) Align end |
Instance Attribute Details
#caption ⇒ Object
816 817 818 |
# File 'TT_Lib2/gui.rb', line 816 def @caption end |
#url ⇒ Object
819 820 821 |
# File 'TT_Lib2/gui.rb', line 819 def url @url end |