Okay. The samples are working, and my application is (although
non-functional, right now) based on the samples.

I'm getting

rtidycd.rb:42:in `initialize': wrong # of arguments(1 for 2) 
(ArgumentError)
        from rtidy.rb:42:in `new'
        from rtidy.rb:42

The relevant code follows. This is almost identical to the way that
it's done in babelfish.rb provided with the FXRuby toolkit. Why
isn't mine working?

-austin
----
require "fox"
include Fox

class RTidyCityDesk < FXMainWindow
    def RTidyCityDesk.fatalError(window, title, message)
        FXMessageBox.error(window, MBOX_OK, title, message)
        raise SystemExit
    end

    def intialize(app)
            # Invoke base class first.
        super(app, "RTidy/CityDesk", nil, nil, DECOR_ALL)

        @basedir = File.dirname(ARGV.shift.gsub(/\\/, '/'))
    end
end

if __FILE__ == $0
        # Make application
    application = FXApp.new("RTidy-CD", "HaloStatue")
    p FXApp.copyright

        # Open Display
    application.init(ARGV)

    case ARGV.size
        when 1
        else
            mwindow = FXMainWindow.new(application, "")
            application.create
            MSG = <<EOS
Not enough arguments to rtidycd.

Usage: rtidycd [<FOX-Args>] <local-URL>

The local URL should be the location where CityDesk publishes your 
website
(and when placed in CityDesk, should simply be represented by %%1).
EOS
            RTidyCityDesk.fatalError(mwindow, "Invalid Arguments", 
MSG)
    end

    window = RTidyCityDesk.new(application) # ! LINE 42 !
#    application.create
#    application.run
end
----

-- Austin Ziegler, austin / halostatue.ca on 2002.10.10 at 01.41.32