Method: ValueRapReadOnly#initialize
- Defined in:
- ext/ae-rad/ae-rad-inspector.rb
#initialize(_parent, _text = nil) ⇒ ValueRapReadOnly
Returns a new instance of ValueRapReadOnly.
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 397 def initialize(_parent, _text = nil) @parent = _parent; @host = _parent.splitted_frame.right_frame @text = _text if !defined? @parent.bodyprops.lasthandlervalue @parent.bodyprops.lasthandlervalue = 0 end @labelkey = TkLabel.new(@host, Arcadia.style('label').update({ 'text' => _text, 'justify' => 'right', 'anchor' => 'w' })) @labelkey.pack('fill'=>'x',:padx=>0, :pady=>0) @labelkey.bind("ButtonPress-1", proc{ do_manage_read_only }) end |