Class: AGTkButton

Inherits:
AGTkBase show all
Defined in:
ext/ae-rad/lib/tk/al-tk.rb

Direct Known Subclasses

AGTkBwButton, AGTkMenuButton

Instance Attribute Summary

Attributes inherited from AGTk

#canvas, #l_manager, #x0, #x3, #y0, #y3

Attributes inherited from AG

#ag_parent, #i_ag, #i_name, #obj, #obj_class, #persistent, #props, #props_def, #props_kinds, #renderer, #sniffer, #sons

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AGTkLayoutManaged

#start_properties

Methods inherited from AGTk

#activate, #active_move_tab, class_renderer, class_sniffer, #contains_events, #delete, #getFileName, #has_events, #initialize, #new_object, #popup, #popup_items, #update_property

Methods inherited from AG

#activate, active, #add_require, #build_sons, class_renderer, class_sniffer, #defaults, #defaults_values, #del_require, #delete, #fill_defaults_value_from_agobj, #getControlClassName, #getFileName, #getInstanceClass, #getObjClass, #getViewClassName, #get_implementation_block, #get_implementation_code, #get_implementation_new, #get_path_i_name, #has_sons, #initialize, near_class_wrapped, near_class_wrapper, #new_id, #new_object, #passed_object, #publish, #publish_def, #publish_del, #publish_mod, publish_property, #register, #retrive_values, #select, #start_properties, #update_property

Constructor Details

This class inherits a constructor from AGTk

Class Method Details

.class_wrappedObject



2683
2684
2685
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 2683

def AGTkButton.class_wrapped
  TkButton
end

Instance Method Details

#propertiesObject



2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
# File 'ext/ae-rad/lib/tk/al-tk.rb', line 2687

def properties
  super()
  publish('property',TkProperties::relief(@obj))
  publish('property',TkProperties::overrelief(@obj))
  publish('property',TkProperties::foreground(@obj))
  publish('property',TkProperties::compound(@obj))
  publish('property',TkProperties::image(@obj))
  publish('property',TkProperties::font(@obj))
  publish('property',TkProperties::anchor(@obj))
  publish('property',TkProperties::padx(@obj))
  publish('property',TkProperties::pady(@obj))
  publish('property',TkProperties::activebackground(@obj))
  publish('property',TkProperties::text(@obj))
  publish('property',TkProperties::activeforeground(@obj))
  publish('property',TkProperties::borderwidth(@obj))
  publish('property','name'=>'justify',
    'get'=> proc{@obj.cget('justify')},
    'set'=> proc{|j| @obj.configure('justify'=>j)},
    'def'=> "",
    'type'=> TkType::TkagJustify
  )
  publish('property','name'=>'default',
    'get'=> proc{@obj.cget('default')},
    'set'=> proc{|j| @obj.configure('default'=>j)},
    'def'=> "",
    'type'=> TkType::TkagState
  )
end