Sha256: 87d0647f0cfe58de34d0e3a2d77fe12167552c650ca0efe70d63a86f916fdb80

Contents?: true

Size: 819 Bytes

Versions: 12

Compression:

Stored size: 819 Bytes

Contents

#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
  require 'rubygems' 
rescue LoadError
end
require 'wx'



module Demo
    def Demo.run(frame, nb, log)
        dlg = Wx::ColourDialog.new(frame)
        dlg.get_colour_data().set_choose_full(true)
        if dlg.show_modal() == Wx::ID_OK
            data = dlg.get_colour_data().get_colour()
            log.write_text("You selected: (%d, %d, %d)" % [data.red, data.green, data.blue])
        end
    end
    
    def Demo.overview
        return "Welcome to the wxRuby ColourDialog demo"
    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

12 entries across 12 versions & 2 rubygems

Version Path
wxruby64-2.0.1-x64-mingw32 samples/bigdemo/wxColourDialog.rbw
wxruby-2.0.1-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.7-i386-mswin32 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.10-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.6-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.6-x86-mingw32 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.7-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.8-x86-mingw32 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.8-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.9-x86-mingw32 samples/bigdemo/wxColourDialog.rbw
wxruby-1.9.9-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw
wxruby-2.0.0-x86-mswin32-60 samples/bigdemo/wxColourDialog.rbw