Displaying 3 results from an estimated 3 matches for "casechangefram".
Did you mean:
casechangeframe
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
Hi
I''m trying to follow the tutorial on xrcise at
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise
But I keep getting the following error when I try to run the example;
tutorial.rb:21:in `initialize'': undefined method ''upper_bt'' for
#<CaseChangeFrame:0x2d610f8> (NoMethodError)
from tutorial.rb:28:in `new''
from tutorial.rb:28:in `on_init''
from c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.2-i386-mswin32/lib/wx/classes/app.rb:16:in
`main_loop''
from c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1....
2010 Jun 22
1
Stuck noobie: XRC/xrcise woes
...rt all the text in the control to upper case
def upcase!
self.value = self.value.upcase
end
# convert all the text in the control to lower case
def downcase!
self.value = self.value.downcase
end
end
# Inherit from the generated base class and set up event handlers
class CaseChangeFrame < TextFrameBase
def initialize
super
evt_button(upper_bt) { text_box1.upcase! }
evt_button(lower_bt) { text_box1.downcase! }
end
end
# Run the class
Wx::App.run do
CaseChangeFrame.new.show
end
4)
##### ERROR MESSAGE: #####
R:\GUI\Practice\Exercise>ruby Exercise....
2008 Mar 05
21
wxruby, XRC, DialogBlock
I''ve been trying to figure out the best method for generating GUI''s with
Ruby. I ended up using DialogBlock because it seems like the fastest
way. But not I have to work backwards and have not done this before.
How do I go from the file I generate in DialogBlock to a code in Ruby?
--
Posted via http://www.ruby-forum.com/.