From: Ernst Tanaka Date: 2007-12-06T00:21:02+09:00 Subject: Re: FxRuby Thank you Lyle for you help. I have my little demo working. I have included the working code. You said I was using the standard Fxruby API. That could be true; but I did not realize it. I generated the MainWindow class code with FOXGuiB. I was under the presumption that this was giving me FxRuby code. I found your mail list on fxruby.org that is a great help. As always in full appreciation of all the help I am getting from the Ruby Seniors! Thanks, Ernst require 'fox16' include Fox #require 'c:\rubydev\ch06\monitor\demo.rb' require 'demo' STDOUT.sync = true class MainWindow def init @button1.text = "1" @button2.text = "2" @button3.text = "3" @text2.text = "a" @text4.text = "b" @text5.text = "c" @button1.connect(SEL_COMMAND) do tmp = @button2.text @button2.text = @button3.text @button3.text = tmp tmp = @text4.text @text4.text = @text5.text @text5.text = tmp end @button2.connect(SEL_COMMAND) do tmp = @button1.text @button1.text = @button3.text @button3.text = tmp tmp = @text2.text @text2.text = @text5.text @text5.text = tmp end @button3.connect(SEL_COMMAND) do tmp = @button1.text @button1.text = @button2.text @button2.text = tmp tmp = @text2.text @text2.text = @text4.text @text4.text = tmp end end end require 'libGUIb16' app=FX::App.new w=MainWindow.new app w.topwin.show(Fox::PLACEMENT_SCREEN) app.create app.run Attachments: http://www.ruby-forum.com/attachment/1105/xx.rb -- Posted via http://www.ruby-forum.com/.