Class: Wx::XmlResource

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/xmlresource.rb

Instance Method Summary collapse

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