[fxruby-users] need to call getApp

Raj Sahae rajsahae at gmail.com
Tue Mar 27 18:11:09 EDT 2007


The following isn't working.  I tried Fox::getApp(), FXId::getApp(), 
FXWindow::getApp(), and on the FXRuby website I couldn't find what 
getApp() belonged to.  On the FOX website, it said FXId.  Assuming I'm 
not passing the app into the method, and the file has no outside 
information on what app might be using it, how do I getApp()?

require 'fox16'
include Fox

Class A
    def initialize(filename)
       @filename = filename
       @icon = nil
    end

    def set_icon
        File.open(@filename, 'rb') do |file|
          @icon = FXJPGIcon.new(FXId::getApp(), file.read, 0, 
IMAGE_KEEP|IMAGE_SHMI|IMAGE_SHMP)
        end
    end
end


More information about the fxruby-users mailing list