BusyCursor probs in 0.6

David Legard
2005-04-03T22:36:04Z

The new block version of BusyCursor doesn''t work for me -- some
actions in between the { braces } do not get carried out.

To illustrate, I have taken the nothing.rbw sample app, and added a
couple of lines to it, so the full code now reads:

require ''wxruby''
include Wx

class MyFrame < Wx::Frame
  def initialize(title)
    super(nil, -1, title)
  end
end

class NothingApp < Wx::App
  def on_init
    frame = MyFrame.new("Minimal wxRuby App")
	frame.show
	BusyCursor.new {
	message_box("This is a control sample", "About Controls")
	}

  end
end

a = NothingApp.new
a.main_loop()

-----------------------
However, the message_box line is never executed and the program seems
to hang. Could somebody advise if I am doing something wrong?

Thanks,

David L.