Class: WxExtensions::PanelDialog

Inherits:
Wx::Dialog
  • Object
show all
Defined in:
lib/reactive-wx/wx_ext/panel_dialog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ PanelDialog

Returns a new instance of PanelDialog.



5
6
7
8
9
10
11
# File 'lib/reactive-wx/wx_ext/panel_dialog.rb', line 5

def initialize(*args)
  super(*args, &nil)      # We explicitely pass a nil block because WxSugar would call the block (We'll call it with a return value...)
  arrange_vertically
  @panel = yield self
  nest(@panel, :proportion => 1)
  # TODO: set size to the best size
end

Instance Attribute Details

#panelObject (readonly)

Returns the value of attribute panel.



3
4
5
# File 'lib/reactive-wx/wx_ext/panel_dialog.rb', line 3

def panel
  @panel
end