Class: Wx::XmlResource
- Inherits:
-
Object
- Object
- Wx::XmlResource
- Defined in:
- lib/wx/classes/xmlresource.rb
Instance Method Summary collapse
-
#load_wizard(parent, name) ⇒ Object
Returns a Wx::Wizard object from the element named
namein the loaded XRC file. -
#load_wizard_subclass(wizard, parent, name) ⇒ Object
Completes the loading of a incomplete instance of Wx::Wizard.
Instance Method Details
#load_wizard(parent, name) ⇒ Object
Returns a Wx::Wizard object from the element named name in the loaded XRC file. The Wizard will have the parent parent.
This method is not available in wxWidgets, but is here for completeness and also to document how to use load_object (see below).
44 45 46 47 48 |
# File 'lib/wx/classes/xmlresource.rb', line 44 def load_wizard(parent, name) wiz = Wx::Wizard.new() load_wizard_subclass(wiz, parent, name) wiz end |
#load_wizard_subclass(wizard, parent, name) ⇒ Object
Completes the loading of a incomplete instance of Wx::Wizard.
51 52 53 |
# File 'lib/wx/classes/xmlresource.rb', line 51 def load_wizard_subclass(wizard, parent, name) load_object(wizard, parent, name, "wxWizard") end |