Class: WxExtensions::PanelDialog
- Inherits:
-
Wx::Dialog
- Object
- Wx::Dialog
- WxExtensions::PanelDialog
- Defined in:
- lib/reactive-wx/wx_ext/panel_dialog.rb
Instance Attribute Summary collapse
-
#panel ⇒ Object
readonly
Returns the value of attribute panel.
Instance Method Summary collapse
-
#initialize(*args) ⇒ PanelDialog
constructor
A new instance of PanelDialog.
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
#panel ⇒ Object (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 |