Jason Perry wrote:
> Sorry, man.
> 
> If you want to define the root of your application you could always set 
> a
> global variable in your main.rb or set a global variable. 

Thanks Jason.  That's what I needed:

main.rb

$file_path = __FILE__

set_icon_file($file_path,"..","icons","test.ico")

.. then in my custom lib directory for PublicInstanceMethods I have:

# This method sets the default icon for the given window or frame
def set_icon_file(path, *file)
  icon_file = File.join(File.dirname(path), file)
  set_icon Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_ICO)
end

.. and now everything works fine.  If there is a better way of doing 
this with regard to use of custom lib files, please let me know.

Thanks.

-- 
Posted via http://www.ruby-forum.com/.