Sha256: 64cc62dc925cc49ba56d249d3db9fe0d5ba49baaa4d47643c9295d13bcff0d63

Contents?: true

Size: 1.5 KB

Versions: 29

Compression:

Stored size: 1.5 KB

Contents

module About

class MyAboutBox < Wx::Dialog
    def initialize(parent)
        super(parent, -1, "About the WxRuby Demo.")
        sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
        set_size(Wx::Size.new(510,310))
        headerFont = Wx::Font.new(36, Wx::SWISS, Wx::NORMAL, Wx::NORMAL)
        bodyFont = Wx::Font.new(12, Wx::SWISS, Wx::NORMAL, Wx::NORMAL)
        title = Wx::StaticText.new(self, -1, "WxRuby Demo!", Wx::Point.new(20, 20))
        title.set_font(headerFont)
        
        rVersion = Wx::StaticText.new(self, -1, "Running on Ruby version " + VERSION + " on " + RUBY_PLATFORM, Wx::Point.new(20,100))
        rVersion.set_font(bodyFont)
        rVersion.set_foreground_colour(Wx::RED)
        
        wxVersion = Wx::StaticText.new(self, -1, Wx::VERSION_STRING, Wx::Point.new(20,120))
        wxVersion.set_font(bodyFont)
        wxVersion.set_foreground_colour(Wx::BLUE)
        
        str = "Welcome to the WxRuby Demo!  This demo has been ported from the \nwxPython demo created by ROBIN DUNN (http://www.wxpython.org).\nGo ahead and click on each demo via the tree or the demo menu.\nLook at the source code - it is an excellent way to learn WxRuby!\n\nPorted by Robert Paul Carlin"
        body = Wx::StaticText.new(self, -1, str, Wx::Point.new(20, 160))
        body.set_font(bodyFont)
        
        self.centre_on_parent(Wx::BOTH)
        
        
    end
    
    
end

end

if __FILE__ == $0
  run_solo_lib = File.join( File.dirname(__FILE__), 'run.rb')
  load run_solo_lib
  run File.basename($0)
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
wxruby-1.9.3-i386-mswin32 samples/bigdemo/About.rbw
wxruby-1.9.2-powerpc-darwin8.10.0 samples/bigdemo/About.rbw
wxruby-1.9.2-i686-linux samples/bigdemo/About.rbw
wxruby-1.9.2-i686-darwin8.8.2 samples/bigdemo/About.rbw
wxruby-1.9.1-powerpc-darwin8.3.0 samples/bigdemo/About.rbw
wxruby-1.9.1-i686-linux samples/bigdemo/About.rbw
wxruby-1.9.1-i686-darwin8.4.1 samples/bigdemo/About.rbw
wxruby-1.9.0-powerpc-darwin8.10.0 samples/bigdemo/About.rbw
wxruby-1.9.0-i686-linux samples/bigdemo/About.rbw
wxruby-1.9.0-i686-darwin8.4.1 samples/bigdemo/About.rbw
wxruby-1.9.0-i386-mswin32 samples/bigdemo/About.rbw
wxruby-1.9.1-x86_64-linux samples/bigdemo/About.rbw
wxruby-1.9.2-x86_64-linux samples/bigdemo/About.rbw
wxruby-1.9.3-universal-darwin samples/bigdemo/About.rbw
wxruby-1.9.3-x86-linux samples/bigdemo/About.rbw
wxruby-1.9.4-x86-linux samples/bigdemo/About.rbw
wxruby-1.9.4-x86_64-linux samples/bigdemo/About.rbw
wxruby-1.9.5-universal-darwin-9 samples/bigdemo/About.rbw
wxruby-1.9.5-x86-linux samples/bigdemo/About.rbw
wxruby-1.9.5-x86_64-linux samples/bigdemo/About.rbw